From 0fd7bbf1ccc41529f1d7cea0728b9cae572729ad Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 6 Feb 2025 11:09:44 -0800 Subject: libslirp,avahi-libnss-mdns: Add --undefined-version to LDFLAGS with LLD LLD does not understand the linker script versioning scheme as BFD linker does Signed-off-by: Khem Raj --- conf/nonclangable.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index f546058..4a5f70d 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -667,6 +667,10 @@ LDFLAGS:append:pn-util-linux:toolchain-clang = "${@bb.utils.contains('DISTRO_FEA LDFLAGS:append:pn-util-linux-libuuid:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}" # riscv64-yoe-linux-musl-ld.lld: error: version script assignment of 'global' to symbol 'pam_sm_chauthtok' failed: symbol not defined LDFLAGS:append:pn-libpam:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}" +# i686-yoe-linux-ld.lld: error: version script assignment of 'SLIRP_4.0' to symbol 'slirp_add_exec' failed: symbol not defined +LDFLAGS:append:pn-libslirp:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}" +# x86_64-yoe-linux-ld.lld: error: version script assignment of 'NSSMDNS_0' to symbol '_nss_mdns_gethostbyaddr_r' failed: symbol not defined +LDFLAGS:append:pn-avahi-libnss-mdns:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}" TUNE_CCARGS:remove:pn-kernel-selftest:toolchain-clang = "-mfpmath=sse" # Avoid's go linker crash as reported in https://github.com/golang/go/issues/61872 -- cgit v1.2.3-54-g00ecf