[lld] r302363 - Fix undefined pthread references when building against libc++

Eric Fiselier via llvm-commits llvm-commits at lists.llvm.org
Sat May 6 15:10:14 PDT 2017


Author: ericwf
Date: Sat May  6 17:10:14 2017
New Revision: 302363

URL: http://llvm.org/viewvc/llvm-project?rev=302363&view=rev
Log:
Fix undefined pthread references when building against libc++

Modified:
    lld/trunk/lib/Core/CMakeLists.txt

Modified: lld/trunk/lib/Core/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/CMakeLists.txt?rev=302363&r1=302362&r2=302363&view=diff
==============================================================================
--- lld/trunk/lib/Core/CMakeLists.txt (original)
+++ lld/trunk/lib/Core/CMakeLists.txt Sat May  6 17:10:14 2017
@@ -21,6 +21,9 @@ add_lld_library(lldCore
   LINK_COMPONENTS
     MC
     Support
+  
+  LINK_LIBS
+  ${LLVM_PTHREAD_LIB}
 
   DEPENDS
   ${tablegen_deps}




More information about the llvm-commits mailing list