mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03:00
configure: Handle *-linux-musl* hosts properly
This is the same as the `*-*-linux*` case with the two exceptions that we don't set glibc=1 and don't define JEMALLOC_USE_CXX_THROW
This commit is contained in:
parent
d503d72129
commit
aba1645f2d
1 changed files with 13 additions and 0 deletions
13
configure.ac
13
configure.ac
|
|
@ -723,6 +723,19 @@ case "${host}" in
|
|||
fi
|
||||
zero_realloc_default_free="1"
|
||||
;;
|
||||
*-*-linux-musl*)
|
||||
dnl syscall(2) and secure_getenv(3) are exposed by _GNU_SOURCE.
|
||||
JE_APPEND_VS(CPPFLAGS, -D_GNU_SOURCE)
|
||||
abi="elf"
|
||||
AC_DEFINE([JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS], [ ], [ ])
|
||||
AC_DEFINE([JEMALLOC_HAS_ALLOCA_H], [ ], [ ])
|
||||
AC_DEFINE([JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY], [ ], [ ])
|
||||
AC_DEFINE([JEMALLOC_THREADED_INIT], [ ], [ ])
|
||||
if test "${LG_SIZEOF_PTR}" = "3"; then
|
||||
default_retain="1"
|
||||
fi
|
||||
zero_realloc_default_free="1"
|
||||
;;
|
||||
*-*-linux*)
|
||||
dnl syscall(2) and secure_getenv(3) are exposed by _GNU_SOURCE.
|
||||
JE_APPEND_VS(CPPFLAGS, -D_GNU_SOURCE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue