[PATCH] Fix building with in-tree libc++abi on FreeBSD

Viktor Kutuzov vkutuzov at accesssoftek.com
Thu Jul 31 10:00:27 PDT 2014


Hi samsonov, danalbert,

Completes the support for linking against in-tree libc++abi added in rL214037 and rL214114.

http://reviews.llvm.org/D4743

Files:
  CMakeLists.txt

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -461,6 +461,7 @@
     set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
     if (${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
       set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,origin")
+      set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,origin")
     endif()
   endif(NOT DEFINED CMAKE_INSTALL_RPATH)
 endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4743.12070.patch
Type: text/x-patch
Size: 467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140731/89d627ad/attachment.bin>


More information about the llvm-commits mailing list