summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-03-27 18:03:30 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-03-27 18:03:30 (GMT)
commitf4ebc1f15f824252502589d5dac2a82936098caa (patch)
tree2722b27cc319424e1379b93ee170554f030f0790 /Modules
parent2436affc966b0a159e0a23c5e25fd89edad624c1 (diff)
downloadCMake-f4ebc1f15f824252502589d5dac2a82936098caa.zip
CMake-f4ebc1f15f824252502589d5dac2a82936098caa.tar.gz
CMake-f4ebc1f15f824252502589d5dac2a82936098caa.tar.bz2
Fix gnu c and Sun CC mix
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/SunOS.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake
index e1c5c58..91c0e00 100644
--- a/Modules/Platform/SunOS.cmake
+++ b/Modules/Platform/SunOS.cmake
@@ -10,6 +10,10 @@ IF(CMAKE_SYSTEM MATCHES "SunOS-5*.")
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-G")
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "-R")
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP ":")
+ SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-KPIC")
+ SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-G")
+ SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-R")
+ SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP ":")
IF(CMAKE_COMPILER_IS_GNUCC)
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")