From a72622b9fa4755c98b37a73c3a89beb057f9ca6a Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 7 Jul 2015 17:48:00 +0000 Subject: [PATCH] Fix the -DBUILD_SHARED_LIBS=ON build. llvm-svn: 241608 --- lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt | 4 +++- lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt | 2 +- lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt | 1 + tools/llvm-jitlistener/CMakeLists.txt | 4 ++++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt b/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt index 348308897dc..331d2141b0e 100644 --- a/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt +++ b/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt @@ -3,4 +3,6 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. ) add_llvm_library(LLVMIntelJITEvents IntelJITEventListener.cpp jitprofiling.c - ) + + LINK_LIBS pthread ${CMAKE_DL_LIBS} +) diff --git a/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt b/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt index 1247cbd9493..afea3ecccda 100644 --- a/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt +++ b/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt @@ -21,4 +21,4 @@ type = OptionalLibrary name = IntelJITEvents parent = ExecutionEngine -required_libraries = Core DebugInfoDWARF Support +required_libraries = Core DebugInfoDWARF Support Object ExecutionEngine diff --git a/lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt b/lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt index e30516eb3b0..7d5550046a5 100644 --- a/lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt +++ b/lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt @@ -21,3 +21,4 @@ type = OptionalLibrary name = OProfileJIT parent = ExecutionEngine +required_libraries = Support Object ExecutionEngine diff --git a/tools/llvm-jitlistener/CMakeLists.txt b/tools/llvm-jitlistener/CMakeLists.txt index e2b30e1950e..61f8420a7ae 100644 --- a/tools/llvm-jitlistener/CMakeLists.txt +++ b/tools/llvm-jitlistener/CMakeLists.txt @@ -14,6 +14,10 @@ set(LLVM_LINK_COMPONENTS nativecodegen object selectiondag + Support + ExecutionEngine + RuntimeDyld + Core ) add_llvm_tool(llvm-jitlistener