mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
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: d8e454b370089e4a33c8373742178ef4d540e848) 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> (cherry picked from commit 3464c67cd34acbb1a6705369e34dee8af7e348ac) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c56f8142a1
commit
62fdfa45ab
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user