tsocks: Always use ligcc for compiler runtime with clang on x86

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-07-18 21:35:36 -07:00
parent 458b297233
commit 457c117418
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -21,6 +21,9 @@ inherit autotools-brokensep
LIBS:append:libc-musl = " -lssp_nonshared"
LIBS:append:libc-glibc = " -lc_nonshared"
# i686-yoe-linux-ld.lld: error: undefined symbol: __unordtf2
LDFLAGS:append:libc-glibc:toolchain-clang:x86 = " --rtlib=libgcc --unwindlib=libgcc"
S = "${UNPACKDIR}/tsocks-1.8"
FILES:${PN} = "${libdir}/* ${bindir}/tsocks"
@ -28,4 +31,3 @@ FILES:${PN}-dev = ""
INSANE_SKIP:${PN} = "dev-so"
EXTRA_OEMAKE = "SHCC='${CC} -fPIC ${LDFLAGS}' LIBS='${LIBS}'"