From fc2b5c40ae48527d73e0e9a3194d26cd932bb053 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 11 Jun 2019 01:50:58 +0000 Subject: [PATCH] Fix -DBUILD_SHARED_LIBS=on build after r362977 The executable has an undefined reference to lld::Saver, the library should be explicitly linked. llvm-svn: 363023 --- lld/tools/lld/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/lld/tools/lld/CMakeLists.txt b/lld/tools/lld/CMakeLists.txt index d8829493fc22..a15e296e31df 100644 --- a/lld/tools/lld/CMakeLists.txt +++ b/lld/tools/lld/CMakeLists.txt @@ -8,6 +8,7 @@ add_lld_tool(lld target_link_libraries(lld PRIVATE + lldCommon lldCOFF lldDriver lldELF