Skip to contentSkip to conversation

jemalloc: Fix build on musl

PATCH New Khem Raj 1 participant 1 message Aug 5, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 jemalloc: Fix build on musl

Fixes
In file included from include/jemalloc/internal/jemalloc_preamble.h:21:
include/jemalloc/internal/../jemalloc.h:235:28: error: exception specification in declaration does not match previous declaration
void JEMALLOC_NOTHROW *je_aligned_alloc(size_t alignment,
^

---
 meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb +2 -0
index 4738f0e786..39637663f6 100644
@@ -22,3 +22,5 @@ S = "${WORKDIR}/git"
 inherit autotools
 
 EXTRA_AUTORECONF += "--exclude=autoheader"
+
+EXTRA_OECONF:append:libc-musl = " --with-jemalloc-prefix=je_"

--
2.32.0