[compiler-rt] r345547 - [CMake] When built with LLVM, not use `-Wl, -z, defs`
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 29 15:16:56 PDT 2018
Author: phosek
Date: Mon Oct 29 15:16:56 2018
New Revision: 345547
URL: http://llvm.org/viewvc/llvm-project?rev=345547&view=rev
Log:
[CMake] When built with LLVM, not use `-Wl,-z,defs`
This matches standalone build behavior. PR28681
Differential Revision: https://reviews.llvm.org/D53686
Patch By: tabloid.adroit
Modified:
compiler-rt/trunk/CMakeLists.txt
Modified: compiler-rt/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=345547&r1=345546&r2=345547&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Mon Oct 29 15:16:56 2018
@@ -375,6 +375,7 @@ append_list_if(COMPILER_RT_HAS_NODEFAULT
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)
More information about the llvm-commits
mailing list