mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-28 20:56:16 +00:00
ostree: workaround compile error with option gcc option -Og
While DEBUG_BUILD = "1" in local.conf, `-Og' is added to cfalgs by Yocto, it broke ostree build with `-Werror=aggregate-return' (the -Werror=aggregate-return is added by ostree configure.ac) So remove -Og and use -O2 as workaround Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
73acbc2952
commit
bde2553860
@ -29,6 +29,14 @@ S = "${WORKDIR}/git"
|
|||||||
|
|
||||||
inherit autotools bash-completion gobject-introspection gtk-doc manpages pkgconfig ptest-gnome systemd
|
inherit autotools bash-completion gobject-introspection gtk-doc manpages pkgconfig ptest-gnome systemd
|
||||||
|
|
||||||
|
# Workaround compile failure:
|
||||||
|
# |../git/src/libotutil/zbase32.c:37:1: error: function returns an aggregate [-Werror=aggregate-return]
|
||||||
|
# so remove -Og and use -O2 as workaround
|
||||||
|
DEBUG_OPTIMIZATION:remove = "-Og"
|
||||||
|
DEBUG_OPTIMIZATION:append = " -O2"
|
||||||
|
BUILD_OPTIMIZATION:remove = "-Og"
|
||||||
|
BUILD_OPTIMIZATION:append = " -O2"
|
||||||
|
|
||||||
# Package configuration - match ostree defaults, but without rofiles-fuse
|
# Package configuration - match ostree defaults, but without rofiles-fuse
|
||||||
# otherwise we introduce a dependendency on meta-filesystems
|
# otherwise we introduce a dependendency on meta-filesystems
|
||||||
PACKAGECONFIG ??= " \
|
PACKAGECONFIG ??= " \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user