Package: suitesparse / 1:5.8.1+dfsg-2

graphblas-build.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: Fix GraphBLAS build system
 - top-level Makefile: do not try to build GraphBLAS dynamic library before
   dynamic suitesparse_config has been compiled
 - ensure that static library is compiled at the same time as the dynamic one
 All this mess comes from the fact that upstream build system compiles
 libsuitesparse_config.a with PIC by default (this is changed in Debian by
 buildflags.patch).
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: no
Last-Update: 2019-11-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/GraphBLAS/Makefile
+++ b/GraphBLAS/Makefile
@@ -16,7 +16,7 @@ default: library
 
 # just build the dynamic library; do not run the demo
 library:
-	( cd build ; cmake $(CMAKE_OPTIONS) .. ; $(MAKE) --jobs=$(JOBS) )
+	( cd build ; cmake $(CMAKE_OPTIONS) -DBUILD_GRB_STATIC_LIBRARY=1 .. ; $(MAKE) --jobs=$(JOBS) )
 
 # just run the demos: assumes the library is already compiled
 run:
--- a/Makefile
+++ b/Makefile
@@ -171,7 +171,6 @@ ifneq (,$(GPU_CONFIG))
 	( cd GPUQREngine && $(MAKE) static )
 endif
 	( cd SPQR && $(MAKE) static )
-	( cd GraphBLAS && $(MAKE) JOBS=$(JOBS) CMAKE_OPTIONS='$(CMAKE_OPTIONS)' static )
 	( cd SLIP_LU && $(MAKE) static )
 #	( cd PIRO_BAND && $(MAKE) static )
 #	( cd SKYLINE_SVD && $(MAKE) static )