summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2022-06-10 06:54:38 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-11 09:28:22 (GMT)
commit614aed1c1dc870cdb507e101b48805ef493bbd16 (patch)
tree01fa0f549ad1dc7aaee5c4f446acac5170542003 /meta/recipes-support
parent499376f51798a7f9fa73d50d3d2ca994e5f20c09 (diff)
downloadpoky-614aed1c1dc870cdb507e101b48805ef493bbd16.tar.gz
xxhash: fix build with gcc 12
It fails to compile xxhash when '-Og' is set in CFLAGS via such as set DEBUG_BUILD = '1' in local.conf. Check and disable inline when '-Og' exists. (From OE-Core rev: 3464c67cd34acbb1a6705369e34dee8af7e348ac) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/xxhash/xxhash_0.8.1.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-support/xxhash/xxhash_0.8.1.bb b/meta/recipes-support/xxhash/xxhash_0.8.1.bb
index b3b9702..222ba7b 100644
--- a/meta/recipes-support/xxhash/xxhash_0.8.1.bb
+++ b/meta/recipes-support/xxhash/xxhash_0.8.1.bb
@@ -14,6 +14,8 @@ SRCREV = "35b0373c697b5f160d3db26b1cbb45a0d5ba788c"
14 14
15S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
16 16
17CFLAGS += "${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Og', '-DXXH_NO_INLINE_HINTS', '', d)}"
18
17do_compile () { 19do_compile () {
18 oe_runmake all 20 oe_runmake all
19} 21}