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

Signed-off-by: Khem Raj <[email protected]>
---
 meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb 
b/meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb
index 42dfcd1e5b..52e9b136c8 100644
--- a/meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb
+++ b/meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb
@@ -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
-- 
2.41.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#104230): 
https://lists.openembedded.org/g/openembedded-devel/message/104230
Mute This Topic: https://lists.openembedded.org/mt/100557955/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to