From f4ebc1f15f824252502589d5dac2a82936098caa Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 27 Mar 2003 13:03:30 -0500 Subject: [PATCH] Fix gnu c and Sun CC mix --- Modules/Platform/SunOS.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake index e1c5c5897..91c0e0044 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")