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