mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
lxc: fixes lxc segment fault issue on arm if it is compiled with GCC 5.2
If the lxc is compiled with gcc 5.2 -O2 optimization on arm, lxc-console/lxc-stop command always produce segment fault. The same issue also occurred on systemd: [YOCTO #8291] For lxc, after several testing, it only needs to disable schedule-insns2 to fix the segment fault issue. Signed-off-by: fli <fupan.li@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
cb16321ca6
commit
b657b65354
|
@ -49,6 +49,9 @@ EXTRA_OECONF += "--enable-log-src-basename"
|
|||
|
||||
CFLAGS_append = " -Wno-error=deprecated-declarations"
|
||||
|
||||
# disable problematic GCC 5.2 optimizations [YOCTO #8291]
|
||||
FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns2"
|
||||
|
||||
PACKAGECONFIG ??= "templates \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
|
||||
"
|
||||
|
|
Loading…
Reference in New Issue
Block a user