]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Link with libsocket on SunOS/Illumos
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 6 Oct 2025 18:25:13 +0000 (20:25 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 6 Oct 2025 18:37:39 +0000 (20:37 +0200)
Closes #1638.

src/ccache/CMakeLists.txt

index 03129125a1578a5ae43bfeaa94a785573dacbd14..140173314a231600201ec41965f119cdadd3a9a7 100644 (file)
@@ -71,6 +71,9 @@ endif()
 if(HTTP_STORAGE_BACKEND)
   target_compile_definitions(ccache_framework PUBLIC -DHAVE_HTTP_STORAGE_BACKEND)
   target_link_libraries(ccache_framework PRIVATE dep_cpphttplib)
+  if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
+    target_link_libraries(ccache_framework PRIVATE socket)
+  endif()
 endif()
 
 add_executable(test-lockfile test_lockfile.cpp)