diff options
author | Brad King <brad.king@kitware.com> | 2012-07-09 21:18:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-07-09 21:18:41 (GMT) |
commit | 767a7ad9dac20d252e71941b6cf03f123c7c37fc (patch) | |
tree | 7aaff691cb11e4c7cea5cb57dd49f86080234a18 /Modules | |
parent | f70f55c064d2b3a761a32b84ca39ee25377300c5 (diff) | |
download | CMake-767a7ad9dac20d252e71941b6cf03f123c7c37fc.zip CMake-767a7ad9dac20d252e71941b6cf03f123c7c37fc.tar.gz CMake-767a7ad9dac20d252e71941b6cf03f123c7c37fc.tar.bz2 |
AIX-GNU: Link shared libs with -brtl,-bnoipath (#13352)
We already use these flags with the XL toolchain. Use them for GNU too.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/AIX-GNU.cmake | 3 |
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() |