Skip to content

Commit 492d07b

Browse files
committed
Test fix for crossbuild of linux arm64
1 parent 9fe2b7d commit 492d07b

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

ports/libfyaml/math.diff

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index ef0c3ae..624930c 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -1189,10 +1189,9 @@ endif()
6+
7+
# Link libm where it exists as a separate library (Linux, FreeBSD, etc.).
8+
# macOS includes math in libSystem; Windows has no libm.
9+
-find_library(LIBM m)
10+
-if(LIBM)
11+
- target_link_libraries(fyaml PUBLIC ${LIBM})
12+
- target_link_libraries(fyaml_static PUBLIC ${LIBM})
13+
+if(UNIX AND NOT ANDROID AND NOT APPLE)
14+
+ target_link_libraries(fyaml PUBLIC m)
15+
+ target_link_libraries(fyaml_static PUBLIC m)
16+
endif()
17+
18+
# Add libclang support if available

ports/libfyaml/portfile.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ vcpkg_extract_source_archive(
1818
"pthread.diff" #https://github.com/pantoniou/libfyaml/pull/287
1919
"yield.diff" #https://github.com/pantoniou/libfyaml/pull/288
2020
"${32BIT_PATCH}"
21+
"math.diff"
2122
)
2223

2324
vcpkg_cmake_configure(

versions/l-/libfyaml.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"versions": [
33
{
4-
"git-tree": "4db5deda83f1b1175d9cf3e76cafd71df1cfb434",
4+
"git-tree": "fc239aeb01262e40939b8e3341315c66cfba96b5",
55
"version": "0.9.6",
66
"port-version": 0
77
}

0 commit comments

Comments
 (0)