[cmake-commits] king committed AIX.cmake 1.14 1.15

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Sep 15 15:19:13 EDT 2006


Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv25249

Modified Files:
	AIX.cmake 
Log Message:
ENH: Enabling link type selection flags for this platform.  See bug#1644 for details.


Index: AIX.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/AIX.cmake,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- AIX.cmake	9 Aug 2006 17:59:22 -0000	1.14
+++ AIX.cmake	15 Sep 2006 19:19:11 -0000	1.15
@@ -41,3 +41,12 @@
   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)



More information about the Cmake-commits mailing list