]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
xxhash: fix build with gcc 12
authorKai Kang <kai.kang@windriver.com>
Fri, 10 Jun 2022 06:54:38 +0000 (14:54 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Jun 2022 09:28:12 +0000 (10:28 +0100)
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.

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>
meta/recipes-support/xxhash/xxhash_0.8.1.bb

index b3b97025987b85d96cdfc03fde53ec339a18d103..222ba7b77c9ffe74886711935f1b98caf0d49896 100644 (file)
@@ -14,6 +14,8 @@ SRCREV = "35b0373c697b5f160d3db26b1cbb45a0d5ba788c"
 
 S = "${WORKDIR}/git"
 
+CFLAGS += "${@bb.utils.contains('SELECTED_OPTIMIZATION', '-Og', '-DXXH_NO_INLINE_HINTS', '', d)}"
+
 do_compile () {
        oe_runmake all
 }