Skip to contentSkip to conversation

python3-bcrypt: Use BFD linker when building tests

PATCH New Khem Raj 1 participant 1 message Jun 18, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 python3-bcrypt: Use BFD linker when building tests

Some of the tests use symbols from libpython3 e.g. PyBytes_FromStringAndSize but does not add it to linker cmdline, its perhaps cargo which should be fixed for that, this however is not something we can fix in OE. So switch to using bfd linker explicitly when building with ptests

---
 meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb +1 -0
index b4f245530d4..d8377de96c1 100644
@@ -4,6 +4,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=8f7bb094c7232b058c7e9f2e431f389c"
 HOMEPAGE = "https://pypi.org/project/bcrypt/"
 
 DEPENDS += "${PYTHON_PN}-cffi-native"
+LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', ' -fuse-ld=bfd', '', d)}"
 
 SRC_URI[sha256sum] = "27d375903ac8261cfe4047f6709d16f7d18d39b1ec92aaf72af989552a650ebd"
 
Signature · 1 line
2.41.0