From 337d71346c03accc50ec76b465dd232b88a9570c Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Mon, 20 Jan 2025 04:11:36 +0100 Subject: [PATCH] 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(+) create mode 100644 math/suitesparse-lagraph/files/patch-LAGraph_experimental_CMakeLists.txt 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 + $ +@@ -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