git: 337d71346c03 - main - math/suitesparse-lagraph: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Jan 2025 23:47:15 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=337d71346c03accc50ec76b465dd232b88a9570c
commit 337d71346c03accc50ec76b465dd232b88a9570c
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-01-20 03:11:36 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-01-21 23:46:21 +0000
math/suitesparse-lagraph: fix build on armv7
liblagraphx requires libm on this platform.
Approved by: portmgr (build fix blanket)
MFH: 2025Q1
PR: 283587
---
math/suitesparse-lagraph/Makefile | 1 +
.../patch-LAGraph_experimental_CMakeLists.txt | 23 ++++++++++++++++++++++
2 files changed, 24 insertions(+)
diff --git a/math/suitesparse-lagraph/Makefile b/math/suitesparse-lagraph/Makefile
index 9ab24d29cf1e..2274949621f5 100644
--- a/math/suitesparse-lagraph/Makefile
+++ b/math/suitesparse-lagraph/Makefile
@@ -1,5 +1,6 @@
PORTNAME= ${MPORTNAME:tl}
PORTVERSION= 1.1.4
+PORTREVISION= 1
CATEGORIES= math
COMMENT= Graph algorithms based on GraphBLAS
diff --git a/math/suitesparse-lagraph/files/patch-LAGraph_experimental_CMakeLists.txt b/math/suitesparse-lagraph/files/patch-LAGraph_experimental_CMakeLists.txt
new file mode 100644
index 000000000000..183ff20b401b
--- /dev/null
+++ b/math/suitesparse-lagraph/files/patch-LAGraph_experimental_CMakeLists.txt
@@ -0,0 +1,23 @@
+--- LAGraph/experimental/CMakeLists.txt.orig 2025-01-20 03:05:28 UTC
++++ LAGraph/experimental/CMakeLists.txt
+@@ -38,7 +38,7 @@ if ( BUILD_SHARED_LIBS )
+ set_target_properties ( LAGraphX PROPERTIES EXPORT_NO_SYSTEM ON )
+ endif ( )
+
+- target_link_libraries ( LAGraphX PRIVATE LAGraph GraphBLAS::GraphBLAS )
++ target_link_libraries ( LAGraphX PRIVATE LAGraph GraphBLAS::GraphBLAS -lm )
+
+ target_include_directories ( LAGraphX PUBLIC
+ $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
+@@ -71,9 +71,9 @@ if ( BUILD_STATIC_LIBS )
+ endif ( )
+
+ if ( TARGET GraphBLAS::GraphBLAS_static )
+- target_link_libraries ( LAGraphX_static PRIVATE GraphBLAS::GraphBLAS_static )
++ target_link_libraries ( LAGraphX_static PRIVATE GraphBLAS::GraphBLAS_static -lm )
+ else ( )
+- target_link_libraries ( LAGraphX_static PRIVATE GraphBLAS::GraphBLAS )
++ target_link_libraries ( LAGraphX_static PRIVATE GraphBLAS::GraphBLAS -lm )
+ endif ( )
+
+ target_include_directories ( LAGraphX_static PUBLIC