summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/MP-RAS.cmake
blob: ae5fa612e0351cd8ac5ed8cdba52c5382e013fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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")
else(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")
  set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-Wl,-Bexport")
endif(CMAKE_SYSTEM MATCHES "MP-RAS-02*.")

include(Platform/UnixPaths)