From 5845843156e10d8e0f61b3b042a707b146fbf93a Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 15 Sep 2006 15:05:03 -0400 Subject: [PATCH] ENH: Enabling link type selection flags for this platform. See bug#1644 for details. --- Modules/Platform/SunOS.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake index cd3579eb9..54cb637a9 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 " -E > ") SET (CMAKE_CXX_CREATE_ASSEMBLY_SOURCE " -S -o ") 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)