Changeset View
Changeset View
Standalone View
Standalone View
build_files/cmake/platform/platform_unix.cmake
| Show First 20 Lines • Show All 535 Lines • ▼ Show 20 Lines | if(EXISTS ${LIBDIR}) | ||||
| without_system_libs_end() | without_system_libs_end() | ||||
| endif() | endif() | ||||
| # ---------------------------------------------------------------------------- | # ---------------------------------------------------------------------------- | ||||
| # Build and Link Flags | # Build and Link Flags | ||||
| # OpenSuse needs lutil, ArchLinux not, for now keep, can avoid by using --as-needed | # OpenSuse needs lutil, ArchLinux not, for now keep, can avoid by using --as-needed | ||||
| if(HAIKU) | if(HAIKU) | ||||
| list(APPEND PLATFORM_LINKLIBS -lnetwork) | list(APPEND PLATFORM_LINKLIBS network) | ||||
| else() | else() | ||||
| list(APPEND PLATFORM_LINKLIBS -lutil -lc -lm) | list(APPEND PLATFORM_LINKLIBS util c m) | ||||
| endif() | endif() | ||||
| find_package(Threads REQUIRED) | find_package(Threads REQUIRED) | ||||
| list(APPEND PLATFORM_LINKLIBS ${CMAKE_THREAD_LIBS_INIT}) | list(APPEND PLATFORM_LINKLIBS ${CMAKE_THREAD_LIBS_INIT}) | ||||
| # used by other platforms | # used by other platforms | ||||
| set(PTHREADS_LIBRARIES ${CMAKE_THREAD_LIBS_INIT}) | set(PTHREADS_LIBRARIES ${CMAKE_THREAD_LIBS_INIT}) | ||||
| if(CMAKE_DL_LIBS) | if(CMAKE_DL_LIBS) | ||||
| ▲ Show 20 Lines • Show All 397 Lines • Show Last 20 Lines | |||||