[oe-commits] Khem Raj : systemd: Fix build with gcc 4.9
git at git.openembedded.org
git at git.openembedded.org
Sun May 4 08:29:46 UTC 2014
Module: openembedded-core.git
Branch: master-next
Commit: 6ebd3ab8078d947819ce4396926535f092a5fded
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6ebd3ab8078d947819ce4396926535f092a5fded
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
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
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