diff src/glpk-1-fixes.patch @ 7018:a61bbe1a4b72

SuiteSparse: update to 7.4.0 * src/suitesparse.mk: Update version and checksum. Use new CMake based build system. * src/glpk-1-fixes.patch: Use pkg-config to get location of SuiteSparse headers.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 30 Dec 2023 19:06:45 +0100
parents e7e566396211
children
line wrap: on
line diff
--- a/src/glpk-1-fixes.patch	Wed Dec 27 10:45:31 2023 -0500
+++ b/src/glpk-1-fixes.patch	Sat Dec 30 19:06:45 2023 +0100
@@ -10,8 +10,8 @@
 +AC_CHECK_LIB([amd], [amd_1])
 +AC_CHECK_LIB([colamd], [colamd])
 +
-+#CPPFLAGS="$CPPFLAGS -I/usr/include/suitesparse"
-+AC_CHECK_HEADER([suitesparse/amd.h])
++CPPFLAGS="$CPPFLAGS $(pkg-config --cflags AMD)"
++AC_CHECK_HEADER([amd.h])
 +
  AC_CONFIG_FILES(
     [src/Makefile examples/Makefile Makefile])