tsocks: Link with libc_nonshared.a

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>
This commit is contained in:
Khem Raj
2018-10-02 08:48:28 -07:00
parent 07ff007355
commit ab43d22479
@@ -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"