[meta-oe][PATCH] jemalloc: Fix build on musl

DORMANTno replies

From: Khem Raj <hidden>
Date: 2021-08-05 06:22:37
Subsystem: the rest · Maintainer: Linus Torvalds

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,
                                 ^

Signed-off-by: Khem Raj <redacted>
Cc: Mingli Yu <redacted>
---
 meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb
index 4738f0e786..39637663f6 100644
--- a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb
+++ b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.2.1.bb
@@ -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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help