From d6fd97e8fbe35392518fce190f4f703dc1047487 Mon Sep 17 00:00:00 2001 From: nipos Date: Sat, 25 Feb 2023 19:10:57 +0100 Subject: [PATCH] Meta: Link to libnsl and libsocket on Solaris in Lagom CMakeLists --- Meta/Lagom/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 432ab5cf879..3cc6a424ef2 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -337,6 +337,10 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "NetBSD") # NetBSD has its shm_open and shm_unlink functions in librt so we need to link that target_link_libraries(LibCore PRIVATE librt.so) endif() +if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS") + # Solaris has socket and networking related functions in two extra libraries + target_link_libraries(LibCore PRIVATE nsl socket) +endif() target_sources(LibCore PRIVATE ${AK_SOURCES}) # LibMain