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' \