1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:38:13 +00:00

Meta: Link AK to libexecinfo on BSDs and Haiku

This requirement was missed when AK was split into its own library
in 5945cdc054
This commit is contained in:
Andrew Kaster 2024-02-26 15:50:11 -07:00 committed by Andrew Kaster
parent a8a1d8746e
commit 5a1944ce64

View file

@ -350,6 +350,10 @@ install(TARGETS LibC LibCrypt LibSystem NoCoverage EXPORT LagomTargets)
# AK
add_serenity_subdirectory(AK)
lagom_lib(AK ak SOURCES ${AK_SOURCES})
if (${CMAKE_SYSTEM_NAME} MATCHES "BSD$" OR HAIKU)
# BSD Platforms and Haiku have backtrace(3) in a separate library
target_link_libraries(AK PRIVATE execinfo)
endif()
# LibCore
add_serenity_subdirectory(Userland/Libraries/LibCore)
@ -362,10 +366,6 @@ 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()
if (${CMAKE_SYSTEM_NAME} MATCHES "BSD$" OR HAIKU)
# BSD Platforms and Haiku have backtrace(3) in a separate library
target_link_libraries(LibCore PRIVATE execinfo)
endif()
if (HAIKU)
# Haiku has networking related functions in the network library
target_link_libraries(LibCore PRIVATE network)