summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-05-24 12:54:00 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-05-24 12:54:00 +0000
commitcf76200bd3ae7d63e92a56ff7b271f5140b8cfc4 (patch)
tree393a85ea572c09eec530869ac801d8024fbbd1ae
parent76747f76a05e5bc66a455d4a0a1e6d364172caad (diff)
downloadbcm5719-llvm-cf76200bd3ae7d63e92a56ff7b271f5140b8cfc4.tar.gz
bcm5719-llvm-cf76200bd3ae7d63e92a56ff7b271f5140b8cfc4.zip
http://llvm.org/bugs/show_bug.cgi?id=9399 fixed by Ryuta Suzuki
llvm-svn: 131961
-rw-r--r--libcxx/cmake/config-ix.cmake1
-rw-r--r--libcxx/lib/CMakeLists.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/cmake/config-ix.cmake b/libcxx/cmake/config-ix.cmake
index 118d82fe8b2..977acdc26ca 100644
--- a/libcxx/cmake/config-ix.cmake
+++ b/libcxx/cmake/config-ix.cmake
@@ -25,6 +25,7 @@ check_cxx_compiler_flag(/GR- LIBCXX_HAS_NO_GR_FLAG)
check_library_exists(pthread pthread_create "" LIBCXX_HAS_PTHREAD_LIB)
check_library_exists(c printf "" LIBCXX_HAS_C_LIB)
check_library_exists(m ccos "" LIBCXX_HAS_M_LIB)
+check_library_exists(rt clock_gettime "" LIBCXX_HAS_RT_LIB)
check_library_exists(gcc_s __gcc_personality_v0 "" LIBCXX_HAS_GCC_S_LIB)
# Check C++0x features
diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt
index 2f49e22770e..d8065cdcfe9 100644
--- a/libcxx/lib/CMakeLists.txt
+++ b/libcxx/lib/CMakeLists.txt
@@ -27,6 +27,7 @@ endif()
append_if(libraries LIBCXX_HAS_PTHREAD_LIB pthread)
append_if(libraries LIBCXX_HAS_C_LIB c)
append_if(libraries LIBCXX_HAS_M_LIB m)
+append_if(libraries LIBCXX_HAS_RT_LIB rt)
append_if(libraries LIBCXX_HAS_GCC_S_LIB gcc_s)
target_link_libraries(cxx ${libraries})
OpenPOWER on IntegriCloud