From c0f040eae744e8688045d892d4fa150a7041a82b Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 5 Jan 2022 16:22:54 +0000 Subject: [build] Haiku build fix (fixes #3136) Haiku needs to link to additional lib -lnetwork for socket funcs (similar to Solaris need for -lsocket -lnsl) (edited: gstrauss) x-ref: "haiku build fix proposal" https://redmine.lighttpd.net/issues/3136 --- tests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/CMakeLists.txt') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 444e7430..a9e83f33 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -5,6 +5,8 @@ if(WIN32) endif() if(CMAKE_SYSTEM_NAME MATCHES "SunOS") set(SOCKLIBS socket nsl) +elseif(CMAKE_SYSTEM_NAME MATCHES "Haiku") + set(SOCKLIBS network) endif() if(SOCKLIBS) target_link_libraries(fcgi-responder ${SOCKLIBS}) -- cgit v1.2.1