summaryrefslogtreecommitdiff
path: root/3rdparty/plibsys/platforms/scosv-gcc/platform.cmake
blob: d1a2d8d84c020170a118e9660116085338bac3af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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()