[libcxxabi] r278076 - Add lib directory to linker paths when using libunwind

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 8 17:27:19 PDT 2016


Author: phosek
Date: Mon Aug  8 19:27:19 2016
New Revision: 278076

URL: http://llvm.org/viewvc/llvm-project?rev=278076&view=rev
Log:
Add lib directory to linker paths when using libunwind

When using libunwind and not building as standalone project, we
need to add LLVM library directory to the list of linker directories
to ensure it can find libunwind dependency.

Differential Revision: https://reviews.llvm.org/D23287

Modified:
    libcxxabi/trunk/src/CMakeLists.txt

Modified: libcxxabi/trunk/src/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/CMakeLists.txt?rev=278076&r1=278075&r2=278076&view=diff
==============================================================================
--- libcxxabi/trunk/src/CMakeLists.txt (original)
+++ libcxxabi/trunk/src/CMakeLists.txt Mon Aug  8 19:27:19 2016
@@ -55,6 +55,9 @@ endif()
 append_if(libraries LIBCXXABI_HAS_C_LIB c)
 
 if (LIBCXXABI_USE_LLVM_UNWINDER)
+  if (NOT LIBCXXABI_BUILT_STANDALONE)
+    link_directories(${LLVM_LIBRARY_DIR})
+  endif()
   list(APPEND libraries unwind)
 else()
   append_if(libraries LIBCXXABI_HAS_GCC_S_LIB gcc_s)




More information about the cfe-commits mailing list