1 SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-KPIC")
2 SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-G")
3 SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
4 SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-R")
5 SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP ":")
6 SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-h")
8 SET(CMAKE_CXX_VERBOSE_FLAG "-v")
10 SET(CMAKE_CXX_FLAGS_INIT "")
11 SET(CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
12 SET(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-xO2 -xspace -DNDEBUG")
13 SET(CMAKE_CXX_FLAGS_RELEASE_INIT "-xO3 -DNDEBUG")
14 SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-g -xO2")
16 # Initialize C link type selection flags. These flags are used when
17 # building a shared library, shared module, or executable that links
18 # to other libraries to select whether to use the static or shared
19 # versions of the libraries.
20 FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
21 SET(CMAKE_${type}_LINK_STATIC_CXX_FLAGS "-Bstatic")
22 SET(CMAKE_${type}_LINK_DYNAMIC_CXX_FLAGS "-Bdynamic")
25 SET(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
26 SET(CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
28 # Create archives with "CC -xar" in case user adds "-instances=extern"
29 # so that template instantiations are available to archive members.
30 SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
31 "<CMAKE_CXX_COMPILER> -xar -o <TARGET> <OBJECTS> "
32 "<CMAKE_RANLIB> <TARGET> ")