2012-08-13 21:47:32 +04:00
|
|
|
if(CMAKE_SYSTEM MATCHES "MP-RAS-02*.")
|
|
|
|
set(CMAKE_C_COMPILE_OPTIONS_PIC -K PIC)
|
|
|
|
set(CMAKE_C_COMPILE_OPTIONS_PIE -K PIE)
|
|
|
|
set(CMAKE_SHARED_LIBRARY_C_FLAGS "-K PIC")
|
2012-08-13 21:50:14 +04:00
|
|
|
else()
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_C_COMPILE_OPTIONS_PIC -K PIC)
|
|
|
|
set(CMAKE_C_COMPILE_OPTIONS_PIE -K PIE)
|
|
|
|
set(CMAKE_SHARED_LIBRARY_C_FLAGS "-K PIC")
|
|
|
|
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-Wl,-Bexport")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2002-11-08 23:46:08 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
include(Platform/UnixPaths)
|
2002-11-08 23:46:08 +03:00
|
|
|
|
|
|
|
|