summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-07-12 20:00:05 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-07-12 20:00:05 (GMT)
commit457041e5b31c315b72ec49b54eb4367f0850086a (patch)
treec5e1a6ab8ff5b79a9ec1e2f81d628f1cad202baa
parent344bdb69e2234a21684d2d194f4934a173e4e6ce (diff)
parent767a7ad9dac20d252e71941b6cf03f123c7c37fc (diff)
downloadCMake-457041e5b31c315b72ec49b54eb4367f0850086a.zip
CMake-457041e5b31c315b72ec49b54eb4367f0850086a.tar.gz
CMake-457041e5b31c315b72ec49b54eb4367f0850086a.tar.bz2
Merge topic 'aix-GNU-shared-libs'
767a7ad AIX-GNU: Link shared libs with -brtl,-bnoipath (#13352)
-rw-r--r--Modules/Platform/AIX-GNU.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Platform/AIX-GNU.cmake b/Modules/Platform/AIX-GNU.cmake
index 543f3e8..81ba365 100644
--- a/Modules/Platform/AIX-GNU.cmake
+++ b/Modules/Platform/AIX-GNU.cmake
@@ -21,5 +21,6 @@ set(__AIX_COMPILER_GNU 1)
macro(__aix_compiler_gnu 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 "${CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS} -Wl,-G")
+ set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS} -Wl,-G,-brtl,-bnoipath")
+ set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,-brtl,-bnoipath,-bexpall") # +s, flag for exe link to use shared lib
endmacro()