mdbx: use -fno-semantic-interposition.

This commit is contained in:
Leonid Yuriev
2022-01-25 18:19:56 +03:00
parent 86d4e37327
commit 207124e7fb
2 changed files with 5 additions and 2 deletions

View File

@@ -227,6 +227,7 @@ else()
check_compiler_flag("-Wextra" CC_HAS_WEXTRA)
check_compiler_flag("-Werror" CC_HAS_WERROR)
check_compiler_flag("-fexceptions" CC_HAS_FEXCEPTIONS)
check_compiler_flag("-fno-semantic-interposition" CC_HAS_FNO_SEMANTIC_INTERPOSITION)
if(CMAKE_CXX_COMPILER_LOADED)
check_cxx_compiler_flag("-fcxx-exceptions" CC_HAS_FCXX_EXCEPTIONS)
endif()
@@ -555,6 +556,9 @@ macro(setup_compile_flags)
if(CC_HAS_FCXX_EXCEPTIONS)
add_compile_flags("CXX" "-fcxx-exceptions" "-frtti")
endif()
if(CC_HAS_FNO_SEMANTIC_INTERPOSITION)
add_compile_flags("C;CXX" "-fno-semantic-interposition")
endif()
if(MSVC)
# checks for /EHa or /clr options exists,
# i.e. is enabled structured async WinNT exceptions