chore: turn off -Bsymbolic-functions in sanitized build

This commit is contained in:
Sebastian Ullrich 2021-07-13 12:00:28 +02:00
parent 99b40e33f5
commit 6ea8b0f4b6

View file

@ -305,7 +305,7 @@ endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(LEANC_SHARED_LINKER_FLAGS "${LEANC_SHARED_LINKER_FLAGS} -fPIC")
if(NOT SANITIZED)
if(BSYMBOLIC_FUNCTIONS)
set(LEANC_SHARED_LINKER_FLAGS "${LEANC_SHARED_LINKER_FLAGS} -Wl,-Bsymbolic-functions")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -ftls-model=initial-exec")