summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-10-03 17:35:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-10-03 17:35:41 (GMT)
commit943de01060e5a53cd8d3230846c387dd41b1fcf7 (patch)
tree986f1817472321efeda44a689e9bb446caa35552
parent8883a761d3cf0efcfda9228f371a038debf67ac0 (diff)
downloadCMake-943de01060e5a53cd8d3230846c387dd41b1fcf7.zip
CMake-943de01060e5a53cd8d3230846c387dd41b1fcf7.tar.gz
CMake-943de01060e5a53cd8d3230846c387dd41b1fcf7.tar.bz2
ENH: disable static shared stuff on AIX, see comment
-rw-r--r--Modules/Platform/AIX.cmake13
1 files changed, 9 insertions, 4 deletions
diff --git a/Modules/Platform/AIX.cmake b/Modules/Platform/AIX.cmake
index 4c72234..b83a9b6 100644
--- a/Modules/Platform/AIX.cmake
+++ b/Modules/Platform/AIX.cmake
@@ -42,11 +42,16 @@ IF(NOT CMAKE_COMPILER_IS_GNUCXX)
SET (CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
+
+# since .a can be a static or shared library on AIX, we can not do this.
+# at some point if we wanted it, we would have to figure out if a .a is
+# static or shared, then we could add this back:
+
# 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)
+#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)