From a2f67ce9d4f6f954fb59fa1f35c4be0878aa0db3 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 2 Jul 2024 16:47:36 -0700 Subject: python-bcrypt: Do not use lld when building with ptests on. Somehow linker/lld here fails to link ptests with cargo, therefore workaround it by disabling lld when ptest feature is on. Fixes errors like note: riscv64-yoe-linux-ld.lld: error: undefined symbol: PyExc_ValueError\nreferenced by bcrypt_rust.a93ef5fbf090e743-cgu.0 Signed-off-by: Khem Raj --- conf/nonclangable.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 8bfef2c..2f3271d 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -635,5 +635,6 @@ LDFLAGS:remove:pn-aufs-util:toolchain-clang = "${@bb.utils.contains('DISTRO_FEAT # | arm-yoe-linux-gnueabi-ld.lld: error: version script assignment of 'global' to symbol 'pam_sm_chauthtok' failed: symbol not defined LDFLAGS:append:pn-lastlog2:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd', '', d)}" LDFLAGS:remove:pn-lastlog2:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-fuse-ld=lld', '', d)}" +LDFLAGS:remove:pn-python3-bcrypt:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld ptest', '-fuse-ld=lld', '', d)}" LD:pn-gnu-efi:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '${HOST_PREFIX}ld.bfd${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}', '${HOST_PREFIX}ld${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}', d)}" -- cgit v1.2.3-54-g00ecf