From: Khem Raj Date: Mon, 13 Apr 2026 06:43:09 +0000 (-0700) Subject: bluez: Fix linking with lld linker X-Git-Tag: yocto-6.0~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b562df41cca62350dff60c34b146388e04271fb;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git bluez: Fix linking with lld linker Recent upgrades have been breaking with LLD as linker aarch64-yoe-linux-ld.lld: error: undefined symbol: __stop___debug >>> referenced by log.c:0 (/usr/src/debug/bluez5/5.86/../sources/bluez-5.86/src/log.c:0) >>> src/log.o:(__btd_log_init) >>> referenced by log.c:0 (/usr/src/debug/bluez5/5.86/../sources/bluez-5.86/src/log.c:0) >>> src/log.o:(__btd_log_init) This is described in LLD docs as well [1] [1] https://lld.llvm.org/ELF/start-stop-gc Signed-off-by: Khem Raj Signed-off-by: Mathieu Dubois-Briand --- diff --git a/meta/recipes-connectivity/bluez5/bluez5_5.86.bb b/meta/recipes-connectivity/bluez5/bluez5_5.86.bb index 7f9972f59e..2d56fc642d 100644 --- a/meta/recipes-connectivity/bluez5/bluez5_5.86.bb +++ b/meta/recipes-connectivity/bluez5/bluez5_5.86.bb @@ -1,5 +1,7 @@ require bluez5.inc +LDFLAGS += " ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-Wl,-z,nostart-stop-gc', '', d)}" + SRC_URI[sha256sum] = "99f144540c6070591e4c53bcb977eb42664c62b7b36cb35a29cf72ded339621d" CVE_STATUS[CVE-2020-24490] = "cpe-incorrect: This issue has kernel fixes rather than bluez fixes"