From: Jonathan Liu Date: Mon, 21 Sep 2015 11:23:44 +0000 (+1000) Subject: systemd: disable problematic GCC 5.2 optimizations X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~28852 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=338f18e5808ea0472350d0c26edd0938ffbdcd23;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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] Signed-off-by: Jonathan Liu Signed-off-by: Ross Burton --- diff --git a/meta/recipes-core/systemd/systemd_225.bb b/meta/recipes-core/systemd/systemd_225.bb index f7d4c7df483..4a19ff4c634 100644 --- a/meta/recipes-core/systemd/systemd_225.bb +++ b/meta/recipes-core/systemd/systemd_225.bb @@ -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"