jemalloc: add _GNU_SOURCE for RTLD_NEXT

This commit is contained in:
Azat Khuzhin 2020-05-24 13:12:00 +03:00
parent 9f1cefd8df
commit 5cd31dbf0d

View File

@ -90,6 +90,8 @@ if (ENABLE_JEMALLOC)
endif ()
target_compile_options(jemalloc PRIVATE -Wno-redundant-decls)
# for RTLD_NEXT
target_compile_options(jemalloc PRIVATE -D_GNU_SOURCE)
else ()
find_library(LIBRARY_JEMALLOC jemalloc)
find_path(INCLUDE_JEMALLOC jemalloc/jemalloc.h)