diff options
author | Khem Raj <raj.khem@gmail.com> | 2014-03-22 18:57:32 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-06 17:59:15 +0100 |
commit | 3cf5a0eba030adf8a219601283410fff2cbf9747 (patch) | |
tree | d7a1741b674480957c91c3ed4c8484209b6f1f61 | |
parent | ab6f21f62c108756d910a9a5d13cad00e21ae247 (diff) | |
download | poky-3cf5a0eba030adf8a219601283410fff2cbf9747.tar.gz |
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)
(From OE-Core rev: 56dc32f128b3029c38381c7cc81f244fbd77416e)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/systemd/systemd_211.bb | 3 |
1 files changed, 3 insertions, 0 deletions
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 " | |||
88 | 88 | ||
89 | do_configure_prepend() { | 89 | do_configure_prepend() { |
90 | export CPP="${HOST_PREFIX}cpp ${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}" | 90 | export CPP="${HOST_PREFIX}cpp ${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}" |
91 | export NM="${HOST_PREFIX}gcc-nm" | ||
92 | export AR="${HOST_PREFIX}gcc-ar" | ||
93 | export RANLIB="${HOST_PREFIX}gcc-ranlib" | ||
91 | export KMOD="${base_bindir}/kmod" | 94 | export KMOD="${base_bindir}/kmod" |
92 | if [ -d ${S}/units.pre_sed ] ; then | 95 | if [ -d ${S}/units.pre_sed ] ; then |
93 | cp -r ${S}/units.pre_sed ${S}/units | 96 | cp -r ${S}/units.pre_sed ${S}/units |