summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-03-04 13:28:21 +0000
committerAlexey Samsonov <samsonov@google.com>2014-03-04 13:28:21 +0000
commit0e4063eb09c0b47d2e52b3b92478d993db76c163 (patch)
tree3958dc768a4136998581bdb9e2ce8dc335eea43d /cmake
parent4aed4a399b640ab5ca301a525b1054470da0fd18 (diff)
downloadcompiler-rt-0e4063eb09c0b47d2e52b3b92478d993db76c163.tar.gz
[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
Diffstat (limited to 'cmake')
-rw-r--r--cmake/config-ix.cmake5
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)