diff options
author | sanine <sanine.not@pm.me> | 2022-08-27 23:52:56 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-08-27 23:52:56 -0500 |
commit | a4dd0ad63c00f4dee3b86dfd3075d1d61b2b3180 (patch) | |
tree | 13bd5bfa15e6fea2a12f176bae79adf9c6fd0933 /3rdparty/plibsys/platforms/scosv-gcc | |
parent | bde3e4f1bb7b8f8abca0884a7d994ee1c17a66b1 (diff) |
add plibsys
Diffstat (limited to '3rdparty/plibsys/platforms/scosv-gcc')
-rw-r--r-- | 3rdparty/plibsys/platforms/scosv-gcc/platform.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/3rdparty/plibsys/platforms/scosv-gcc/platform.cmake b/3rdparty/plibsys/platforms/scosv-gcc/platform.cmake new file mode 100644 index 0000000..d1a2d8d --- /dev/null +++ b/3rdparty/plibsys/platforms/scosv-gcc/platform.cmake @@ -0,0 +1,27 @@ +include (${PROJECT_SOURCE_DIR}/platforms/common/SCOSV.cmake) + +set (PLIBSYS_THREAD_MODEL posix) +set (PLIBSYS_IPC_MODEL sysv) +set (PLIBSYS_TIME_PROFILER_MODEL posix) +set (PLIBSYS_DIR_MODEL posix) +set (PLIBSYS_LIBRARYLOADER_MODEL posix) + +set (PLIBSYS_PLATFORM_DEFINES + -D_REENTRANT + -D_SIMPLE_R +) + +if (CMAKE_SYSTEM_VERSION VERSION_LESS "5.0") + set (PLIBSYS_PLATFORM_LINK_LIBRARIES socket nsl gthreads malloc) + + plibsys_scosv_print_threading_message () +else() + set (PLIBSYS_PLATFORM_LINK_LIBRARIES socket nsl -pthread) + set (PLIBSYS_PLATFORM_CFLAGS -pthread) + + message (" + SCO OpenServer 6 was not actually tested with GCC + compiler. This build may or may not work properly. + Consider running tests before usage. + ") +endif() |