Skip to contentSkip to conversation

keyutils: Fix build with lld linker

PATCH New Khem Raj 1 participant 1 message Apr 13

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 keyutils: Fix build with lld linker

---
 meta-oe/recipes-security/keyutils/keyutils_1.6.3.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-security/keyutils/keyutils_1.6.3.bb +2 -0
index 86f45656f6..2e7503cd42 100644
@@ -44,6 +44,8 @@ EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} -Wall' \
     NO_GLIBC_KEYERR=1 \
     "
 
+LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}"
+
 do_install () {
     oe_runmake DESTDIR=${D} install
 }