diff options
author | Brad King <brad.king@kitware.com> | 2015-01-10 17:00:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-01-12 17:59:52 (GMT) |
commit | ac5922317f4f2229c5dc79b29d913275fa55f021 (patch) | |
tree | 7cccf9f4e47a700f686803399ebad58f2cd9f07a | |
parent | c118816d44e178e4364a0c32aaece81a14511237 (diff) | |
download | CMake-ac5922317f4f2229c5dc79b29d913275fa55f021.zip CMake-ac5922317f4f2229c5dc79b29d913275fa55f021.tar.gz CMake-ac5922317f4f2229c5dc79b29d913275fa55f021.tar.bz2 |
XL: Fix link flags for executables on Linux with XL compilers
Use "-Wl,-export-dynamic" with XL to match the "-rdynamic" flag used
with GNU-like compilers.
-rw-r--r-- | Modules/Platform/Linux-XL-C.cmake | 1 | ||||
-rw-r--r-- | Modules/Platform/Linux-XL-CXX.cmake | 1 | ||||
-rw-r--r-- | Modules/Platform/Linux-XL-Fortran.cmake | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-XL-C.cmake b/Modules/Platform/Linux-XL-C.cmake index f1c584c..d595e44 100644 --- a/Modules/Platform/Linux-XL-C.cmake +++ b/Modules/Platform/Linux-XL-C.cmake @@ -1 +1,2 @@ set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-qmkshrobj") +set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-Wl,-export-dynamic") diff --git a/Modules/Platform/Linux-XL-CXX.cmake b/Modules/Platform/Linux-XL-CXX.cmake index abd3fa4..5ceb255 100644 --- a/Modules/Platform/Linux-XL-CXX.cmake +++ b/Modules/Platform/Linux-XL-CXX.cmake @@ -1 +1,2 @@ set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-qmkshrobj") +set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "-Wl,-export-dynamic") diff --git a/Modules/Platform/Linux-XL-Fortran.cmake b/Modules/Platform/Linux-XL-Fortran.cmake index cdd1f70..a878991 100644 --- a/Modules/Platform/Linux-XL-Fortran.cmake +++ b/Modules/Platform/Linux-XL-Fortran.cmake @@ -1 +1,2 @@ set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-qmkshrobj") +set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-Wl,-export-dynamic") |