diff options
author | Brad King <brad.king@kitware.com> | 2011-03-02 16:17:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-03-02 16:20:50 (GMT) |
commit | 89ea7a3d3c9487eb33caaedf1b636e0af092dcc2 (patch) | |
tree | cb47bc41e95adc3735d805771b8a4c511840a78b /Modules/Platform/AIX-XL.cmake | |
parent | f72cc88c659d586cc65ac47e7807054345ccad89 (diff) | |
download | CMake-89ea7a3d3c9487eb33caaedf1b636e0af092dcc2.zip CMake-89ea7a3d3c9487eb33caaedf1b636e0af092dcc2.tar.gz CMake-89ea7a3d3c9487eb33caaedf1b636e0af092dcc2.tar.bz2 |
Factor AIX and XL compiler flags into common module
Factor duplicate flag information from Platform/AIX-XL-*.cmake into
Platform/AIX-XL.cmake and load it from the original files.
Diffstat (limited to 'Modules/Platform/AIX-XL.cmake')
-rw-r--r-- | Modules/Platform/AIX-XL.cmake | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Modules/Platform/AIX-XL.cmake b/Modules/Platform/AIX-XL.cmake new file mode 100644 index 0000000..c07f28d --- /dev/null +++ b/Modules/Platform/AIX-XL.cmake @@ -0,0 +1,26 @@ + +#============================================================================= +# Copyright 2002-2011 Kitware, Inc. +# +# Distributed under the OSI-approved BSD License (the "License"); +# see accompanying file Copyright.txt for details. +# +# This software is distributed WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the License for more information. +#============================================================================= +# (To distribute this file outside of CMake, substitute the full +# License text for the above reference.) + +# This module is shared by multiple languages; use include blocker. +if(__AIX_COMPILER_XL) + return() +endif() +set(__AIX_COMPILER_XL 1) + +macro(__aix_compiler_xl lang) + 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 " ") + set(CMAKE_SHARED_MODULE_${lang}_FLAGS " ") +endmacro() |