1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

systemd: disable problematic GCC 5.2 optimizations

This fixes systemd failing to start on Raspberry Pi 2 if it is compiled
with GCC 5.2.

It would try to start "Journal Service" and "udev Kernel Device Manager"
but fail repeatedly.

[YOCTO #8291]

(From OE-Core rev: 338f18e5808ea0472350d0c26edd0938ffbdcd23)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Jonathan Liu
2015-09-21 21:23:44 +10:00
committed by Richard Purdie
parent 554c817a7a
commit 329d09f5f6
+3
View File
@@ -123,6 +123,9 @@ EXTRA_OECONF = " --with-rootprefix=${rootprefix} \
# uclibc does not have NSS
EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname "
# disable problematic GCC 5.2 optimizations [YOCTO #8291]
FULL_OPTIMIZATION += "-fno-schedule-insns -fno-schedule-insns2"
do_configure_prepend() {
export NM="${HOST_PREFIX}gcc-nm"
export AR="${HOST_PREFIX}gcc-ar"