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
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})