From b5a792e209ed3e4b25c9a2a81f60f8737656f295 Mon Sep 17 00:00:00 2001 From: Xiaozhan Li Date: Thu, 23 Apr 2026 09:32:51 +0800 Subject: [PATCH] jemalloc: fix always_inline build failure Enable debug build flag in jemalloc to avoid error as below: inlining failed in call to 'always_inline' 'heap_ph_cmp': function not considered for inlining Signed-off-by: Xiaozhan Li Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb index aa1f417604..edaaea26b6 100644 --- a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb +++ b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb @@ -29,6 +29,8 @@ EXTRA_OECONF:append:libc-musl = " --with-jemalloc-prefix=je_" # For some reason VERSION file populated only in tarball distribution. # Adding jemalloc version since this recipe is using source code from git tag EXTRA_OECONF:append = " --with-version=${PV_LONG} --enable-xmalloc" +# Enable jemalloc debug build flag if DEBUG_BUILD is enabled +EXTRA_OECONF:append = " ${@oe.utils.vartrue('DEBUG_BUILD', '--enable-debug=yes', '', d)}" do_install:append() { sed -i -e 's@${STAGING_DIR_HOST}@@g' \