From a4dd0ad63c00f4dee3b86dfd3075d1d61b2b3180 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 27 Aug 2022 23:52:56 -0500 Subject: add plibsys --- .../plibsys/platforms/scosv-gcc/platform.cmake | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 3rdparty/plibsys/platforms/scosv-gcc/platform.cmake (limited to '3rdparty/plibsys/platforms/scosv-gcc') 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() -- cgit v1.2.1