summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/SunOS.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-15 21:00:22 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-15 21:00:22 (GMT)
commitc164ba1ba157f82a05f18a5c03df653840be590e (patch)
treeb8bdedfa83f6c53faabd13fe78d96a095ce0c09f /Modules/Platform/SunOS.cmake
parent523b7ffa3bbefcc78450d74734b44a222882c616 (diff)
downloadCMake-c164ba1ba157f82a05f18a5c03df653840be590e.zip
CMake-c164ba1ba157f82a05f18a5c03df653840be590e.tar.gz
CMake-c164ba1ba157f82a05f18a5c03df653840be590e.tar.bz2
fix for sun
Diffstat (limited to 'Modules/Platform/SunOS.cmake')
-rw-r--r--Modules/Platform/SunOS.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake
index 94fe528..8d72c70 100644
--- a/Modules/Platform/SunOS.cmake
+++ b/Modules/Platform/SunOS.cmake
@@ -11,6 +11,7 @@ IF(CMAKE_SYSTEM MATCHES "SunOS-5*.")
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "-R,")
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP ":")
IF(CMAKE_COMPILER_IS_GNUCXX)
+ SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -nostdlib")
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "-Wl,-R,")
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP ":")