Fix gnu c and Sun CC mix
This commit is contained in:
parent
2436affc96
commit
f4ebc1f15f
|
@ -10,6 +10,10 @@ IF(CMAKE_SYSTEM MATCHES "SunOS-5*.")
|
||||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-G")
|
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-G")
|
||||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "-R")
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG "-R")
|
||||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_FLAG_SEP ":")
|
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)
|
IF(CMAKE_COMPILER_IS_GNUCC)
|
||||||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
|
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
|
||||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
|
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
|
||||||
|
|
Loading…
Reference in New Issue