summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-15 19:19:11 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-15 19:19:11 (GMT)
commit690543c612fb19188a76d6fefb1093998232ddb5 (patch)
tree13e2580590cc9c26336cba4ac24d9a7927bac8b2 /Modules/Platform
parentb2a5495922ede8c6d98342e3c35808a0a7790186 (diff)
downloadCMake-690543c612fb19188a76d6fefb1093998232ddb5.zip
CMake-690543c612fb19188a76d6fefb1093998232ddb5.tar.gz
CMake-690543c612fb19188a76d6fefb1093998232ddb5.tar.bz2
ENH: Enabling link type selection flags for this platform. See bug#1644 for details.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/AIX.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/Platform/AIX.cmake b/Modules/Platform/AIX.cmake
index f1b3d03..4c72234 100644
--- a/Modules/Platform/AIX.cmake
+++ b/Modules/Platform/AIX.cmake
@@ -41,3 +41,12 @@ IF(NOT CMAKE_COMPILER_IS_GNUCXX)
SET (CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
SET (CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
+
+# Initialize C link type selection flags. These flags are used when
+# building a shared library, shared module, or executable that links
+# to other libraries to select whether to use the static or shared
+# versions of the libraries.
+FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
+ SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-bstatic")
+ SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-bdynamic")
+ENDFOREACH(type)