[oe-commits] Drew Moseley : busybox: Use CCLD

git at git.openembedded.org git at git.openembedded.org
Sat Apr 5 22:15:27 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: 088d2f0185da6648305b4719ee9cb0d2f2b37c6f
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=088d2f0185da6648305b4719ee9cb0d2f2b37c6f

Author: Drew Moseley <drew_moseley at mentor.com>
Date:   Thu Apr  3 18:39:31 2014 -0400

busybox: Use CCLD

Use the CCLD variable to ensure proper tuning parameters.
Notably when building on a x86-64 host with an i686 toolchain
there is an error building built-in.o because it is trying to
link 32-bit and 64-bit object files:

     i686-pc-linux-gnu-ld --sysroot=/work/dmoseley/Mentor/amd-2014.05/build.genericx86-64-external/tmp/sysroots/genericx86-64     -r -o applets/built-in.o applets/ap
     i686-pc-linux-gnu-ld: Relocatable linking with relocations from format elf64-x86-64 (applets/applets.o) to format elf32-i386 (applets/built-in.o) is not support
     make[1]: *** [applets/built-in.o] Error 1

Signed-off-by: Drew Moseley <drew_moseley at mentor.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-core/busybox/busybox.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index 69b9b0c..eedbe46 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -17,6 +17,7 @@ BUSYBOX_SPLIT_SUID ?= "1"
 
 export EXTRA_CFLAGS = "${CFLAGS}"
 export EXTRA_LDFLAGS = "${LDFLAGS}"
+export EXTRA_OEMAKE += "'LD=${CCLD}'"
 
 PACKAGES =+ "${PN}-httpd ${PN}-udhcpd ${PN}-udhcpc ${PN}-syslog ${PN}-mdev ${PN}-hwclock"
 



More information about the Openembedded-commits mailing list