Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | if(NOT HAVE_LARGE_FILE_SUPPORT) | ||||
add_compile_definitions(_FILE_OFFSET_BITS=64) | add_compile_definitions(_FILE_OFFSET_BITS=64) | ||||
add_linker_flags(-Wl,--large-address-aware) | add_linker_flags(-Wl,--large-address-aware) | ||||
endif() | endif() | ||||
if(ENABLE_GLIBC_BACK_COMPAT) | if(ENABLE_GLIBC_BACK_COMPAT) | ||||
# Wrap some glibc functions with ours | # Wrap some glibc functions with ours | ||||
add_linker_flags(-Wl,--wrap=__divmoddi4) | add_linker_flags(-Wl,--wrap=__divmoddi4) | ||||
add_linker_flags(-Wl,--wrap=log2f) | add_linker_flags(-Wl,--wrap=log2f) | ||||
add_linker_flags(-Wl,--wrap=exp) | |||||
add_linker_flags(-Wl,--wrap=log) | |||||
add_linker_flags(-Wl,--wrap=pow) | |||||
if(NOT HAVE_LARGE_FILE_SUPPORT) | if(NOT HAVE_LARGE_FILE_SUPPORT) | ||||
add_linker_flags(-Wl,--wrap=fcntl -Wl,--wrap=fcntl64) | add_linker_flags(-Wl,--wrap=fcntl -Wl,--wrap=fcntl64) | ||||
endif() | endif() | ||||
endif() | endif() | ||||
if(USE_JEMALLOC) | if(USE_JEMALLOC) | ||||
# Most of the sanitizers require their instrumented allocation functions to | # Most of the sanitizers require their instrumented allocation functions to | ||||
▲ Show 20 Lines • Show All 482 Lines • Show Last 20 Lines |