1 IF(CMAKE_SYSTEM MATCHES "SunOS-4.*")
2 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-PIC")
3 SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -Wl,-r")
4 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-R")
5 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
6 SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-h")
7 SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-h")
8 ENDIF(CMAKE_SYSTEM MATCHES "SunOS-4.*")
10 IF(CMAKE_SYSTEM MATCHES "SunOS-5*.")
11 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-KPIC")
12 SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-G")
13 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-R")
14 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
15 SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-h")
16 SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-h")
17 SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-KPIC")
18 SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-G")
19 SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-R")
20 SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP ":")
21 IF(CMAKE_COMPILER_IS_GNUCC)
22 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
23 SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
24 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-R")
25 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
26 SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-h")
27 ENDIF(CMAKE_COMPILER_IS_GNUCC)
28 IF(CMAKE_COMPILER_IS_GNUCXX)
29 SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC")
30 SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-shared")
31 SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-Wl,-R")
32 SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP ":")
33 SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-h")
34 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
35 ENDIF(CMAKE_SYSTEM MATCHES "SunOS-5*.")
37 IF(CMAKE_COMPILER_IS_GNUCXX)
38 IF(CMAKE_COMPILER_IS_GNUCC)
39 SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
40 "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
41 ELSE(CMAKE_COMPILER_IS_GNUCC)
42 # Take default rule from CMakeDefaultMakeRuleVariables.cmake.
43 ENDIF(CMAKE_COMPILER_IS_GNUCC)
44 ELSE(CMAKE_COMPILER_IS_GNUCXX)
45 IF(CMAKE_CXX_COMPILER)
46 SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
47 "<CMAKE_CXX_COMPILER> -xar -o <TARGET> <OBJECTS> "
48 "<CMAKE_RANLIB> <TARGET> ")
49 ENDIF(CMAKE_CXX_COMPILER)
50 ENDIF(CMAKE_COMPILER_IS_GNUCXX)