mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 00:32:13 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user