Fix the -DBUILD_SHARED_LIBS=ON build.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 7 Jul 2015 17:48:00 +0000 (17:48 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 7 Jul 2015 17:48:00 +0000 (17:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241608 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt
lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt
lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt
tools/llvm-jitlistener/CMakeLists.txt

index 3483088..331d214 100644 (file)
@@ -3,4 +3,6 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
 add_llvm_library(LLVMIntelJITEvents
   IntelJITEventListener.cpp
   jitprofiling.c
-  )
+
+  LINK_LIBS pthread ${CMAKE_DL_LIBS}
+)
index 1247cbd..afea3ec 100644 (file)
@@ -21,4 +21,4 @@
 type = OptionalLibrary
 name = IntelJITEvents
 parent = ExecutionEngine
-required_libraries = Core DebugInfoDWARF Support
+required_libraries = Core DebugInfoDWARF Support Object ExecutionEngine
index e30516e..7d55500 100644 (file)
@@ -21,3 +21,4 @@
 type = OptionalLibrary
 name = OProfileJIT
 parent = ExecutionEngine
+required_libraries = Support Object ExecutionEngine
index e2b30e1..61f8420 100644 (file)
@@ -14,6 +14,10 @@ set(LLVM_LINK_COMPONENTS
   nativecodegen
   object
   selectiondag
+  Support
+  ExecutionEngine
+  RuntimeDyld
+  Core
   )
 
 add_llvm_tool(llvm-jitlistener