diff mbox series

[oe,meta-networking,1/2] tsocks: Link with libc_nonshared.a

Message ID 20181002162542.42865-1-raj.khem@gmail.com
State Accepted
Commit ab43d224790ba1489573167bdafdb4cc9c165203
Headers show
Series [oe,meta-networking,1/2] tsocks: Link with libc_nonshared.a | expand

Commit Message

Khem Raj Oct. 2, 2018, 4:25 p.m. UTC
Link step uses -nostdlib which means all defaults from gcc spec file are
not used and it results in errors when using stack protector options

e.g.
in function `send_socksv5_connect':
| /usr/src/debug/tsocks/1.8beta5-r0/tsocks-1.8/tsocks.c:954: undefined reference to `__stack_chk_fail_local'

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb | 1 +
 1 file changed, 1 insertion(+)

-- 
2.19.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
index 72913579af..725ba189c6 100644
--- a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
+++ b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
@@ -19,6 +19,7 @@  SRC_URI[sha256sum] = "849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863
 inherit autotools-brokensep
 
 LIBS_append_libc-musl = " -lssp_nonshared"
+LIBS_append_libc-glibc = " -lc_nonshared"
 
 S = "${WORKDIR}/tsocks-1.8"