summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/MP-RAS.cmake
blob: fe8d81a1b53b965ba3cda7320848370e10a0ba23 (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()
  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()

include(Platform/UnixPaths)