summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2017-11-27 19:18:36 +0000
committerMichal Gorny <mgorny@gentoo.org>2017-11-27 19:18:36 +0000
commit4414b08bb185d85a526bcfbe56fa2630637a7dbd (patch)
treea95415b8f2c874aa4a983fc0694b613661526601 /llvm
parentd9e710984d169280e613b229974ceea22f7132fc (diff)
downloadbcm5719-llvm-4414b08bb185d85a526bcfbe56fa2630637a7dbd.tar.gz
bcm5719-llvm-4414b08bb185d85a526bcfbe56fa2630637a7dbd.zip
Revert r319069 - [cmake] Pass -Wl,-z,nodelete on Linux to prevent unloading
This breaks one of the unit tests. Need to find a good solution. llvm-svn: 319076
Diffstat (limited to 'llvm')
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index b5059a8a60e..c5390371845 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -151,14 +151,6 @@ if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32 OR CYGWIN OR
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs")
endif()
-# Pass -Wl,-z,nodelete. This makes sure our shared libraries are not unloaded
-# by dlclose(). We need that since the CLI API relies on cross-references
-# between global objects which became horribly broken when one of the libraries
-# is unloaded.
-if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,nodelete")
-endif()
-
function(append value)
foreach(variable ${ARGN})
OpenPOWER on IntegriCloud