]> git.pld-linux.org Git - packages/SuiteSparse.git/blame - SuiteSparse-config.patch
- fixed build with metis support, enable by default
[packages/SuiteSparse.git] / SuiteSparse-config.patch
CommitLineData
a992b9a7
JB
1--- SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk.orig 2014-08-16 21:22:58.000000000 +0200
2+++ SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk 2023-01-03 21:21:55.047555049 +0100
3@@ -69,7 +69,7 @@
4 # C and C++ compiler flags. The first three are standard for *.c and *.cpp
5 # Add -DNTIMER if you do use any timing routines (otherwise -lrt is required).
6 # CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O3 -fexceptions -fPIC -DNTIMER
7- CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O3 -fexceptions -fPIC
8+CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -fPIC
9 # for the MKL BLAS:
10 # CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O3 -fexceptions -fPIC -I$(MKLROOT)/include -D_GNU_SOURCE
11
12@@ -84,7 +84,7 @@ MV = mv -f
13
14 # Fortran compiler (not required for 'make' or 'make library')
15 F77 = gfortran
16-F77FLAGS = $(FFLAGS) -O
17+F77FLAGS = $(FFLAGS)
18 F77LIB =
19
20 # C and Fortran libraries. Remove -lrt if you don't have it.
21@@ -93,8 +93,10 @@ F77LIB =
22 # LIB = -lm
23
24 # For "make install"
25-INSTALL_LIB = /usr/local/lib
26-INSTALL_INCLUDE = /usr/local/include
27+INSTALL_PREFIX = /usr
28+LIB_SUBDIR = lib
29+INSTALL_LIB = $(INSTALL_PREFIX)/$(LIB_SUBDIR)
30+INSTALL_INCLUDE = $(INSTALL_PREFIX)/include/suitesparse
31
32 # Which version of MAKE you are using (default is "make")
33 # MAKE = make
34@@ -210,8 +212,8 @@ XERBLA =
35 # The path is relative to where it is used, in CHOLMOD/Lib, CHOLMOD/MATLAB, etc.
36 # You may wish to use an absolute path. METIS is optional. Compile
37 # CHOLMOD with -DNPARTITION if you do not wish to use METIS.
38-METIS_PATH = ../../metis-4.0
39-METIS = ../../metis-4.0/libmetis.a
40+METIS_PATH = /usr/include/metis
41+METIS = -lmetis
42
43 #------------------------------------------------------------------------------
44 # UMFPACK configuration:
This page took 0.0798 seconds and 4 git commands to generate.