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.
This commit is contained in:
Andrew Kaster 2024-05-09 15:12:15 -06:00 committed by Andrew Kaster
commit b5a60c0f9f
Notes: sideshowbarker 2024-07-17 06:39:26 +09:00

View file

@ -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