From 0e4063eb09c0b47d2e52b3b92478d993db76c163 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Tue, 4 Mar 2014 13:28:21 +0000 Subject: [CMake] Test for libdl and libpthread presence git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202847 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/config-ix.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmake') 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) -- cgit v1.2.3