https://github.com/llvmbot created 
https://github.com/llvm/llvm-project/pull/165638

Backport 21bcd00e54416b0950da19fe8adb0628a19bf66f

Requested by: @brad0

>From a2cb10a0e31a8070a4b43db8a24e5b48ea96e147 Mon Sep 17 00:00:00 2001
From: Brad Smith <[email protected]>
Date: Wed, 29 Oct 2025 20:55:15 -0400
Subject: [PATCH] [clang-shlib] Fix linking libclang-cpp on Haiku (#156401)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Haiku requires linking in libnetwork.

Co-authored-by: Jérôme Duval <[email protected]>
(cherry picked from commit 21bcd00e54416b0950da19fe8adb0628a19bf66f)
---
 clang/tools/clang-shlib/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/clang/tools/clang-shlib/CMakeLists.txt 
b/clang/tools/clang-shlib/CMakeLists.txt
index 945076e1ad810..a4d0aa5779a7e 100644
--- a/clang/tools/clang-shlib/CMakeLists.txt
+++ b/clang/tools/clang-shlib/CMakeLists.txt
@@ -41,6 +41,10 @@ if (CLANG_LINK_CLANG_DYLIB)
   set(INSTALL_WITH_TOOLCHAIN INSTALL_WITH_TOOLCHAIN)
 endif()
 
+if (HAIKU)
+  list(APPEND _DEPS network)
+endif()
+
 add_clang_library(clang-cpp
                   SHARED
                   ${INSTALL_WITH_TOOLCHAIN}

_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to