[oe-commits] Khem Raj : systemd: Fix build with gcc 4.9

git at git.openembedded.org git at git.openembedded.org
Tue May 6 17:01:28 UTC 2014


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

Author: Khem Raj <raj.khem at gmail.com>
Date:   Sat Mar 22 18:57:32 2014 -0700

systemd: Fix build with gcc 4.9

We need to use gcc-nm and gcc-ar to deal with slim objects
which are generated when using -flto

(From OE-Core rev: e6d84c9f4fef201217ada60711ecfb94bc5dc2e0)

Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-core/systemd/systemd_211.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd_211.bb b/meta/recipes-core/systemd/systemd_211.bb
index ec595be..63bccc7 100644
--- a/meta/recipes-core/systemd/systemd_211.bb
+++ b/meta/recipes-core/systemd/systemd_211.bb
@@ -88,6 +88,9 @@ EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname "
 
 do_configure_prepend() {
 	export CPP="${HOST_PREFIX}cpp ${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}"
+	export NM="${HOST_PREFIX}gcc-nm"
+	export AR="${HOST_PREFIX}gcc-ar"
+	export RANLIB="${HOST_PREFIX}gcc-ranlib"
 	export KMOD="${base_bindir}/kmod"
 	if [ -d ${S}/units.pre_sed ] ; then
 		cp -r ${S}/units.pre_sed ${S}/units



More information about the Openembedded-commits mailing list