From 56dc32f128b3029c38381c7cc81f244fbd77416e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 22 Mar 2014 18:57:32 -0700 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-core/systemd/systemd_211.bb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta') diff --git a/meta/recipes-core/systemd/systemd_211.bb b/meta/recipes-core/systemd/systemd_211.bb index ec595bee08..63bccc7a72 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 -- cgit v1.2.3