summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Linux-GNU.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Linux-GNU.cmake')
-rw-r--r--Modules/Platform/Linux-GNU.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-GNU.cmake b/Modules/Platform/Linux-GNU.cmake
index df6295b..d257f34 100644
--- a/Modules/Platform/Linux-GNU.cmake
+++ b/Modules/Platform/Linux-GNU.cmake
@@ -19,4 +19,7 @@ endif()
set(__LINUX_COMPILER_GNU 1)
macro(__linux_compiler_gnu lang)
+ # We pass this for historical reasons. Projects may have
+ # executables that use dlopen but do not set ENABLE_EXPORTS.
+ set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-rdynamic")
endmacro()