From b5a60c0f9f50cd702a48aa836099b11b9b50732d Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Thu, 9 May 2024 15:12:15 -0600 Subject: [PATCH] Meta: Link librt to LibCoreMinimal on NetBSD We were already linking librt to LibCore for shm_open and friends. Now that we build the code that uses POSIX shm into LibCoreMinimal, we need to link librt into that as well. --- Meta/Lagom/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 4a2002bbb61..2eaab2e2ada 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -347,7 +347,8 @@ add_serenity_subdirectory(Userland/Libraries/LibCore) target_link_libraries(LibCore PRIVATE Threads::Threads) 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) + target_link_libraries(LibCore PRIVATE rt) + target_link_libraries(LibCoreMinimal PRIVATE rt) endif() if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS") # Solaris has socket and networking related functions in two extra libraries