diff options
Diffstat (limited to 'Modules/Platform/MP-RAS.cmake')
-rw-r--r-- | Modules/Platform/MP-RAS.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/Platform/MP-RAS.cmake b/Modules/Platform/MP-RAS.cmake new file mode 100644 index 0000000..fe8d81a --- /dev/null +++ b/Modules/Platform/MP-RAS.cmake @@ -0,0 +1,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) + + |