Skip to contentSkip to conversation

pcmciautils: Pass LD=CC via Make cmdline

PATCH New Khem Raj 1 participant 1 message Aug 5, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 pcmciautils: Pass LD=CC via Make cmdline

This ensures that LD is always consistent in Makefile and it is computed independent of LD variable setting order in metadata e.g. when using meta-clang with lld the LD var maybe set to ld.ldd and this will be wrong here

---
 meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb +1 -2
index 42dfcd1e5b..52e9b136c8 100644
@@ -28,11 +28,10 @@ export pcmciaconfdir = "${sysconfdir}/pcmcia"
 export udevdir = "`pkg-config --variable=udevdir udev`"
 export udevrulesdir = "`pkg-config --variable=udevdir udev`/rules.d"
 export UDEV = "1"
-LD = "${CC}"
 CFLAGS =+ "-I${S}/src"
 CFLAGS =+ "-DPCMCIAUTILS_VERSION=\\"${PV}\\""
 
-EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs' 'LEX=flex'"
+EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs' 'LEX=flex' 'LD=${CC}'"
 
 do_install () {
 	oe_runmake 'DESTDIR=${D}' install
Signature · 1 line
2.41.0