mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
cxx_rust_cssparser, new recipe (#13783)
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
From 30ea08923967eb5b6359c40db00b1dac96625f1c Mon Sep 17 00:00:00 2001
|
||||
From: Luc Schrijvers <begasus@gmail.com>
|
||||
Date: Mon, 2 Mar 2026 11:51:30 +0100
|
||||
Subject: Link with libbsd and libnetwork instead of libdl on Haiku
|
||||
|
||||
|
||||
diff --git a/rust/CMakeLists.txt b/rust/CMakeLists.txt
|
||||
index e5a3b76..d149640 100644
|
||||
--- a/rust/CMakeLists.txt
|
||||
+++ b/rust/CMakeLists.txt
|
||||
@@ -54,7 +54,7 @@ add_custom_command(
|
||||
set_target_properties(cxx-rust-cssparser-impl PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
||||
target_include_directories(cxx-rust-cssparser-impl PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
-target_link_libraries(cxx-rust-cssparser-impl pthread dl ${RUST_LIB})
|
||||
+target_link_libraries(cxx-rust-cssparser-impl pthread network bsd ${RUST_LIB})
|
||||
|
||||
if (BUILD_TESTING)
|
||||
add_test(NAME rust COMMAND cargo test)
|
||||
--
|
||||
2.52.0
|
||||
|
||||
|
||||
From 64021169d4d03c933fdcd99d78032a05bf42ad4d Mon Sep 17 00:00:00 2001
|
||||
From: Luc Schrijvers <begasus@gmail.com>
|
||||
Date: Mon, 2 Mar 2026 15:38:51 +0100
|
||||
Subject: Fix build for -Wl,--fatal-warnings
|
||||
|
||||
|
||||
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
|
||||
index 2f9074d..c74d1a6 100644
|
||||
--- a/cpp/CMakeLists.txt
|
||||
+++ b/cpp/CMakeLists.txt
|
||||
@@ -29,6 +29,10 @@ if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
string(REPLACE "-Wl,--no-undefined " " " CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
endif()
|
||||
|
||||
+if (CMAKE_SYSTEM_NAME MATCHES "Haiku")
|
||||
+ string(REPLACE "-Wl,--fatal-warnings " " " CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
+endif()
|
||||
+
|
||||
set_target_properties(cxx-rust-cssparser PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
||||
SOVERSION ${PROJECT_VERSION_MAJOR}
|
||||
--
|
||||
2.52.0
|
||||
|
||||
Reference in New Issue
Block a user