[PATCH] D53686: [CMake] When built with LLVM, not use `-Wl,-z,defs`
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 29 15:19:20 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL345547: [CMake] When built with LLVM, not use `-Wl,-z,defs` (authored by phosek, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D53686
Files:
compiler-rt/trunk/CMakeLists.txt
Index: compiler-rt/trunk/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/CMakeLists.txt
+++ compiler-rt/trunk/CMakeLists.txt
@@ -375,6 +375,7 @@
if (COMPILER_RT_USE_BUILTINS_LIBRARY)
list(APPEND SANITIZER_COMMON_LINK_LIBS ${COMPILER_RT_BUILTINS_LIBRARY})
+ string(REPLACE "-Wl,-z,defs" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
else()
if (ANDROID)
append_list_if(COMPILER_RT_HAS_GCC_LIB gcc SANITIZER_COMMON_LINK_LIBS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53686.171589.patch
Type: text/x-patch
Size: 511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181029/e826678a/attachment.bin>
More information about the llvm-commits
mailing list