Skip to content

Commit

Permalink
python-bcrypt: Do not use lld when building with ptests on.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kraj committed Jul 2, 2024
1 parent 23958f4 commit 7c75810
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conf/nonclangable.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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)}"

0 comments on commit 7c75810

Please sign in to comment.