Skip to content

Commit

Permalink
libslirp,avahi-libnss-mdns: Add --undefined-version to LDFLAGS with LLD
Browse files Browse the repository at this point in the history
LLD does not understand the linker script versioning scheme as BFD linker does

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Feb 9, 2025
1 parent 84ce79b commit 0fd7bbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conf/nonclangable.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fd7bbf

Please sign in to comment.