xxhash: fix build with gcc 12
PATCH 1/1 xxhash: fix build with gcc 12
From: Kai Kang <[email protected]>
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 <[email protected]>
--- meta/recipes-support/xxhash/xxhash_0.8.1.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-support/xxhash/xxhash_0.8.1.bb +2 -0
@@ -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 }
Signature · 1 line
2.17.1