[lld] r262345 - Fix BUILD_SHARED_LIBS build.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 07:56:53 PST 2016
Author: rafael
Date: Tue Mar 1 09:56:53 2016
New Revision: 262345
URL: http://llvm.org/viewvc/llvm-project?rev=262345&view=rev
Log:
Fix BUILD_SHARED_LIBS build.
Modified:
lld/trunk/COFF/CMakeLists.txt
lld/trunk/ELF/CMakeLists.txt
lld/trunk/lib/ReaderWriter/MachO/CMakeLists.txt
lld/trunk/tools/lld/CMakeLists.txt
lld/trunk/unittests/CoreTests/CMakeLists.txt
Modified: lld/trunk/COFF/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/CMakeLists.txt?rev=262345&r1=262344&r2=262345&view=diff
==============================================================================
--- lld/trunk/COFF/CMakeLists.txt (original)
+++ lld/trunk/COFF/CMakeLists.txt Tue Mar 1 09:56:53 2016
@@ -28,6 +28,8 @@ add_lld_library(lldCOFF
Target
Option
Support
+
+ LINK_LIBS ${PTHREAD_LIB}
)
add_dependencies(lldCOFF COFFOptionsTableGen)
Modified: lld/trunk/ELF/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/CMakeLists.txt?rev=262345&r1=262344&r2=262345&view=diff
==============================================================================
--- lld/trunk/ELF/CMakeLists.txt (original)
+++ lld/trunk/ELF/CMakeLists.txt Tue Mar 1 09:56:53 2016
@@ -18,10 +18,15 @@ add_lld_library(lldELF
Writer.cpp
LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ BitReader
+ Core
+ Linker
Object
Option
MC
Support
+ Target
LINK_LIBS
lldConfig
Modified: lld/trunk/lib/ReaderWriter/MachO/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/CMakeLists.txt?rev=262345&r1=262344&r2=262345&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/CMakeLists.txt (original)
+++ lld/trunk/lib/ReaderWriter/MachO/CMakeLists.txt Tue Mar 1 09:56:53 2016
@@ -23,6 +23,7 @@ add_lld_library(lldMachO
lldYAML
LLVMObject
LLVMSupport
+ ${PTHREAD_LIB}
)
include_directories(.)
Modified: lld/trunk/tools/lld/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/tools/lld/CMakeLists.txt?rev=262345&r1=262344&r2=262345&view=diff
==============================================================================
--- lld/trunk/tools/lld/CMakeLists.txt (original)
+++ lld/trunk/tools/lld/CMakeLists.txt Tue Mar 1 09:56:53 2016
@@ -5,6 +5,7 @@ add_llvm_executable(lld
target_link_libraries(lld
lldDriver
lldCOFF
+ lldELF
LLVMSupport
)
Modified: lld/trunk/unittests/CoreTests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/CoreTests/CMakeLists.txt?rev=262345&r1=262344&r2=262345&view=diff
==============================================================================
--- lld/trunk/unittests/CoreTests/CMakeLists.txt (original)
+++ lld/trunk/unittests/CoreTests/CMakeLists.txt Tue Mar 1 09:56:53 2016
@@ -1,3 +1,7 @@
add_lld_unittest(CoreTests
ParallelTest.cpp
)
+
+target_link_libraries(CoreTests
+ ${PTHREAD_LIB}
+ )
More information about the llvm-commits
mailing list