Fix symbol conflict with musl libc

`__libc` prefixed functions are used by musl libc as non-replaceable malloc stubs.

Fix this conflict by checking if we are linking against glibc.
This commit is contained in:
Yuriy Chernyshov 2021-12-27 13:39:39 +03:00 committed by Alexander Lapenkov
parent f509703af5
commit 18510020e7

View File

@ -3239,7 +3239,7 @@ JEMALLOC_EXPORT void *(*__memalign_hook)(size_t alignment, size_t size) =
je_memalign;
# endif
# ifdef CPU_COUNT
# ifdef __GLIBC__
/*
* To enable static linking with glibc, the libc specific malloc interface must
* be implemented also, so none of glibc's malloc.o functions are added to the