[lld] r363023 - Fix -DBUILD_SHARED_LIBS=on build after r362977
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 10 18:50:58 PDT 2019
Author: maskray
Date: Mon Jun 10 18:50:58 2019
New Revision: 363023
URL: http://llvm.org/viewvc/llvm-project?rev=363023&view=rev
Log:
Fix -DBUILD_SHARED_LIBS=on build after r362977
The executable has an undefined reference to lld::Saver, the library
should be explicitly linked.
Modified:
lld/trunk/tools/lld/CMakeLists.txt
Modified: lld/trunk/tools/lld/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/tools/lld/CMakeLists.txt?rev=363023&r1=363022&r2=363023&view=diff
==============================================================================
--- lld/trunk/tools/lld/CMakeLists.txt (original)
+++ lld/trunk/tools/lld/CMakeLists.txt Mon Jun 10 18:50:58 2019
@@ -8,6 +8,7 @@ add_lld_tool(lld
target_link_libraries(lld
PRIVATE
+ lldCommon
lldCOFF
lldDriver
lldELF
More information about the llvm-commits
mailing list