diff options
author | Jonathan Liu <net147@gmail.com> | 2015-09-21 21:23:44 +1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-23 09:53:09 +0100 |
commit | 329d09f5f60c5d1d20baefa8e9df68ca2abd9aa1 (patch) | |
tree | 0a83908cdaa9449d8c7756fc197cbbc0e0c02289 | |
parent | 554c817a7a00d409f3ec20bfe8910ced45a4ca04 (diff) | |
download | poky-329d09f5f60c5d1d20baefa8e9df68ca2abd9aa1.tar.gz |
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>
-rw-r--r-- | meta/recipes-core/systemd/systemd_225.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_225.bb b/meta/recipes-core/systemd/systemd_225.bb index f7d4c7df48..4a19ff4c63 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} \ | |||
123 | # uclibc does not have NSS | 123 | # uclibc does not have NSS |
124 | EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname " | 124 | EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname " |
125 | 125 | ||
126 | # disable problematic GCC 5.2 optimizations [YOCTO #8291] | ||
127 | FULL_OPTIMIZATION += "-fno-schedule-insns -fno-schedule-insns2" | ||
128 | |||
126 | do_configure_prepend() { | 129 | do_configure_prepend() { |
127 | export NM="${HOST_PREFIX}gcc-nm" | 130 | export NM="${HOST_PREFIX}gcc-nm" |
128 | export AR="${HOST_PREFIX}gcc-ar" | 131 | export AR="${HOST_PREFIX}gcc-ar" |