[PATCH] D98405: [cmake] Link to libnetwork on Haiku in llvm-jitlink
Niels Sascha Reedijk via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 11 02:48:19 PST 2021
nielx created this revision.
nielx added reviewers: lhames, serge-sans-paille.
Herald added a subscriber: mgorny.
nielx requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The system's network API is in libnetwork.so, so we explicitly need to link to them on Haiku. This patch is similar to https://reviews.llvm.org/D97633.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98405
Files:
llvm/tools/llvm-jitlink/CMakeLists.txt
llvm/tools/llvm-jitlink/llvm-jitlink-executor/CMakeLists.txt
Index: llvm/tools/llvm-jitlink/llvm-jitlink-executor/CMakeLists.txt
===================================================================
--- llvm/tools/llvm-jitlink/llvm-jitlink-executor/CMakeLists.txt
+++ llvm/tools/llvm-jitlink/llvm-jitlink-executor/CMakeLists.txt
@@ -11,6 +11,10 @@
intrinsics_gen
)
+if(${CMAKE_SYSTEM_NAME} MATCHES "Haiku")
+ target_link_libraries(llvm-jitlink-executor PRIVATE network)
+endif()
+
if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
target_link_libraries(llvm-jitlink-executor PRIVATE socket)
endif()
Index: llvm/tools/llvm-jitlink/CMakeLists.txt
===================================================================
--- llvm/tools/llvm-jitlink/CMakeLists.txt
+++ llvm/tools/llvm-jitlink/CMakeLists.txt
@@ -24,6 +24,10 @@
llvm-jitlink-macho.cpp
)
+if(${CMAKE_SYSTEM_NAME} MATCHES "Haiku")
+ target_link_libraries(llvm-jitlink PRIVATE network)
+endif()
+
if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
target_link_libraries(llvm-jitlink PRIVATE socket nsl)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98405.329896.patch
Type: text/x-patch
Size: 1008 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210311/2c2b127a/attachment.bin>
More information about the llvm-commits
mailing list