diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config-ix.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 3d514ecdd..7753c38f1 100644 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -1,4 +1,5 @@ include(CheckCXXCompilerFlag) +include(CheckLibraryExists) include(CheckSymbolExists) # CodeGen options. @@ -38,3 +39,7 @@ check_cxx_compiler_flag(/wd4722 COMPILER_RT_HAS_WD4722_FLAG) # Symbols. check_symbol_exists(__func__ "" COMPILER_RT_HAS_FUNC_SYMBOL) + +# Libraries. +check_library_exists(dl dlopen "" COMPILER_RT_HAS_LIBDL) +check_library_exists(pthread pthread_create "" COMPILER_RT_HAS_LIBPTHREAD) |