diff options
author | Brad King <brad.king@kitware.com> | 2013-03-11 12:51:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-03-11 13:01:27 (GMT) |
commit | bce7a2a3a5dedcdbc04732a3a3be74c383f2a04a (patch) | |
tree | a7e61377ca0f26afb5703e8b8ae5ee4a109e8eb2 /Modules/Platform/AIX-GNU.cmake | |
parent | 1d3b35fd8a59c6f987b4caab17330955dbaf32bc (diff) | |
download | CMake-bce7a2a3a5dedcdbc04732a3a3be74c383f2a04a.zip CMake-bce7a2a3a5dedcdbc04732a3a3be74c383f2a04a.tar.gz CMake-bce7a2a3a5dedcdbc04732a3a3be74c383f2a04a.tar.bz2 |
AIX: Do not use -brtl to create shared libraries (#13997)
The flag was added incorrectly by commit 9c3a6eb4 (Need -brtl when creating
shared libraries, 2003-05-16). According to "man ld" the -G option implies
"-brtl -bnortllib ...", -brtl implies "-brtllib", and -brtllib should only be
used for executables, not shared libraries. Therefore it is incorrect and
unnecessary to specify -brtl explicitly after -G.
Reported-by: Kevin Burge <kcburge@gmail.com>
Diffstat (limited to 'Modules/Platform/AIX-GNU.cmake')
-rw-r--r-- | Modules/Platform/AIX-GNU.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/AIX-GNU.cmake b/Modules/Platform/AIX-GNU.cmake index 81ba365..7e86b14 100644 --- a/Modules/Platform/AIX-GNU.cmake +++ b/Modules/Platform/AIX-GNU.cmake @@ -21,6 +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,-brtl,-bnoipath") + set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS} -Wl,-G,-bnoipath") set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,-brtl,-bnoipath,-bexpall") # +s, flag for exe link to use shared lib endmacro() |