summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/AIX-XL.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-03-02 16:17:29 (GMT)
committerBrad King <brad.king@kitware.com>2011-03-02 16:21:54 (GMT)
commitd30dcf18b9dedcf6744a87793653bc0d94d8a8bb (patch)
tree8546a7b03aaa4692d3d00aa8ec158d79281ee7be /Modules/Platform/AIX-XL.cmake
parent89ea7a3d3c9487eb33caaedf1b636e0af092dcc2 (diff)
downloadCMake-d30dcf18b9dedcf6744a87793653bc0d94d8a8bb.zip
CMake-d30dcf18b9dedcf6744a87793653bc0d94d8a8bb.tar.gz
CMake-d30dcf18b9dedcf6744a87793653bc0d94d8a8bb.tar.bz2
Move RPATH flags to AIX per-compiler information files
Move RPATH flags out of Platform/AIX.cmake into platform-specific compiler information files Platform/AIX-XL and Platform/AIX-GNU. The flags need to be set for each compiler of each language.
Diffstat (limited to 'Modules/Platform/AIX-XL.cmake')
-rw-r--r--Modules/Platform/AIX-XL.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/AIX-XL.cmake b/Modules/Platform/AIX-XL.cmake
index c07f28d..1f94152 100644
--- a/Modules/Platform/AIX-XL.cmake
+++ b/Modules/Platform/AIX-XL.cmake
@@ -19,6 +19,8 @@ endif()
set(__AIX_COMPILER_XL 1)
macro(__aix_compiler_xl lang)
+ set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,-blibpath:")
+ set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":")
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-G -Wl,-brtl,-bnoipath") # -shared
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,-brtl,-bnoipath,-bexpall") # +s, flag for exe link to use shared lib
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS " ")