diff -Nru suitesparse-5.1.2~beta/debian/patches/buildflags.patch suitesparse-5.1.2~beta/debian/patches/buildflags.patch --- suitesparse-5.1.2~beta/debian/patches/buildflags.patch 2017-12-25 22:44:27.000000000 +0200 +++ suitesparse-5.1.2~beta/debian/patches/buildflags.patch 2017-12-28 08:52:11.000000000 +0200 @@ -3,9 +3,10 @@ - remove optimization flags because we want to support noopt option - remove -fPIC because we don't want to use it for static libraries (and debian/rules re-adds it for dynamic libraries) + - link libgraphblasdemo with libm to fix build with -Wl,--as-needed Author: Sébastien Villemot Forwarded: not-needed -Last-Update: 2017-12-01 +Last-Update: 2017-12-28 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/CSparse/Demo/Makefile @@ -47,3 +48,14 @@ endif #--------------------------------------------------------------------------- +--- a/GraphBLAS/CMakeLists.txt ++++ b/GraphBLAS/CMakeLists.txt +@@ -137,7 +137,7 @@ + C_STANDARD_REQUIRED 11 ) + set_property ( TARGET graphblasdemo_static PROPERTY C_STANDARD 11 ) + +-target_link_libraries ( graphblasdemo graphblas ) ++target_link_libraries ( graphblasdemo m graphblas ) + target_link_libraries ( graphblasdemo_static graphblas_static ) + + # Demo programs