summaryrefslogtreecommitdiff
path: root/3rdparty/plibsys/platforms/scosv-gcc
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/plibsys/platforms/scosv-gcc')
-rw-r--r--3rdparty/plibsys/platforms/scosv-gcc/platform.cmake27
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()