summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-15 19:05:03 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-15 19:05:03 (GMT)
commit5845843156e10d8e0f61b3b042a707b146fbf93a (patch)
tree2e017f9e063b7ce17c0942223484c79890b0bbe1 /Modules
parent3079a67133095f8a4119815bb040e8534616e8dd (diff)
downloadCMake-5845843156e10d8e0f61b3b042a707b146fbf93a.zip
CMake-5845843156e10d8e0f61b3b042a707b146fbf93a.tar.gz
CMake-5845843156e10d8e0f61b3b042a707b146fbf93a.tar.bz2
ENH: Enabling link type selection flags for this platform. See bug#1644 for details.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/SunOS.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake
index cd3579e..54cb637 100644
--- a/Modules/Platform/SunOS.cmake
+++ b/Modules/Platform/SunOS.cmake
@@ -71,3 +71,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)