Make -save-temps behave like in GCC 4.5.
[oota-llvm.git] / lib / System / CMakeLists.txt
index 31baf356bb05279e6272ac998b51b0583ef0ab35..a5a56e832dc2921c0b8e28f65b17c7c829bfc713 100644 (file)
@@ -1,5 +1,6 @@
 add_llvm_library(LLVMSystem
   Alarm.cpp
+  Atomic.cpp
   Disassembler.cpp
   DynamicLibrary.cpp
   Host.cpp
@@ -9,6 +10,12 @@ add_llvm_library(LLVMSystem
   Path.cpp
   Process.cpp
   Program.cpp
+  RWMutex.cpp
   Signals.cpp
+  Threading.cpp
   TimeValue.cpp
   )
+
+if( BUILD_SHARED_LIBS AND NOT WIN32 )
+  target_link_libraries(LLVMSystem dl)
+endif()