diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2021-12-03 11:21:04 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-12-02 22:40:22 -0800 |
commit | bde2553860b4c3cfab70bd493abd1c40afe73668 (patch) | |
tree | eadd10319aa31c7768f3c1229efcee5d76651bee /meta-oe | |
parent | 73acbc295261d6648d7ead0c53610e4cdc4deb37 (diff) | |
download | meta-openembedded-bde2553860b4c3cfab70bd493abd1c40afe73668.tar.gz |
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>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-extended/ostree/ostree_2021.6.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/ostree/ostree_2021.6.bb b/meta-oe/recipes-extended/ostree/ostree_2021.6.bb index 9e0f7bc7c..d2d5dc0aa 100644 --- a/meta-oe/recipes-extended/ostree/ostree_2021.6.bb +++ b/meta-oe/recipes-extended/ostree/ostree_2021.6.bb | |||
@@ -29,6 +29,14 @@ S = "${WORKDIR}/git" | |||
29 | 29 | ||
30 | inherit autotools bash-completion gobject-introspection gtk-doc manpages pkgconfig ptest-gnome systemd | 30 | inherit autotools bash-completion gobject-introspection gtk-doc manpages pkgconfig ptest-gnome systemd |
31 | 31 | ||
32 | # Workaround compile failure: | ||
33 | # |../git/src/libotutil/zbase32.c:37:1: error: function returns an aggregate [-Werror=aggregate-return] | ||
34 | # so remove -Og and use -O2 as workaround | ||
35 | DEBUG_OPTIMIZATION:remove = "-Og" | ||
36 | DEBUG_OPTIMIZATION:append = " -O2" | ||
37 | BUILD_OPTIMIZATION:remove = "-Og" | ||
38 | BUILD_OPTIMIZATION:append = " -O2" | ||
39 | |||
32 | # Package configuration - match ostree defaults, but without rofiles-fuse | 40 | # Package configuration - match ostree defaults, but without rofiles-fuse |
33 | # otherwise we introduce a dependendency on meta-filesystems | 41 | # otherwise we introduce a dependendency on meta-filesystems |
34 | PACKAGECONFIG ??= " \ | 42 | PACKAGECONFIG ??= " \ |