diff options
author | Michal Gorny <mgorny@gentoo.org> | 2017-11-27 19:18:36 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2017-11-27 19:18:36 +0000 |
commit | 8eec0f94b4925590bf67460f204a921196094f60 (patch) | |
tree | 0e2e82a8cc2347c9387fed34d272c2fd587ce7e3 /cmake | |
parent | ec3e9648821233f82e2caa02ed023e1b4a30de23 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/HandleLLVMOptions.cmake | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index b5059a8a60e..c5390371845 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/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}) |