diff options
author | Robert Clausecker <fuz@FreeBSD.org> | 2024-11-06 15:06:02 +0100 |
---|---|---|
committer | Robert Clausecker <fuz@FreeBSD.org> | 2024-11-06 16:14:32 +0100 |
commit | 432f2ebe088377708fb08514ea86f2c19a5b0ad5 (patch) | |
tree | 767bcb103c8b6813f18a21cecb2f4c5f1e3967b9 /math/sdpa/files/patch-mumps_Makefile | |
parent | net/delegate: fix fetch (diff) |
math/sdpa: speed up build
Sub-Makefiles of this port use make macros with lots of shell expansions
that are expanded again and again. Assign to these with := so that the
shell commands are ran only once. This fixes the port not building due
to timeouts under high system load.
Approved by: portmgr (build fix blanket)
MFH: 2024Q4
Diffstat (limited to 'math/sdpa/files/patch-mumps_Makefile')
-rw-r--r-- | math/sdpa/files/patch-mumps_Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/math/sdpa/files/patch-mumps_Makefile b/math/sdpa/files/patch-mumps_Makefile new file mode 100644 index 000000000000..721b74eb8d7f --- /dev/null +++ b/math/sdpa/files/patch-mumps_Makefile @@ -0,0 +1,27 @@ +--- mumps/Makefile.orig 2024-11-06 14:00:35 UTC ++++ mumps/Makefile +@@ -8,15 +8,15 @@ SDPA_MAKEFILE = ../Makefile + # the arguments given to './configure' script for building SDPA + ################################################################### + +-CC = ${shell grep "^CC =" ${SDPA_MAKEFILE} | cut -f2 -d=} +-CFLAGS = ${shell grep "^CFLAGS = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-CXX = ${shell grep "^CXX =" ${SDPA_MAKEFILE} | cut -f2 -d=} +-CXXFLAGS = ${shell grep "^CXXFLAGS = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-FC = ${shell grep "^FC =" ${SDPA_MAKEFILE} | cut -f2 -d=} +-FCFLAGS = ${shell grep "^FCFLAGS = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-PTHREAD_INCLUDE = ${shell grep "^PTHREAD_INCLUDE = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-AR = ${shell grep "^AR = " ${SDPA_MAKEFILE} | cut -f2 -d=} +-RANLIB = ${shell grep "^RANLIB = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++CC := ${shell grep "^CC =" ${SDPA_MAKEFILE} | cut -f2 -d=} ++CFLAGS := ${shell grep "^CFLAGS = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++CXX := ${shell grep "^CXX =" ${SDPA_MAKEFILE} | cut -f2 -d=} ++CXXFLAGS := ${shell grep "^CXXFLAGS = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++FC := ${shell grep "^FC =" ${SDPA_MAKEFILE} | cut -f2 -d=} ++FCFLAGS := ${shell grep "^FCFLAGS = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++PTHREAD_INCLUDE := ${shell grep "^PTHREAD_INCLUDE = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++AR := ${shell grep "^AR = " ${SDPA_MAKEFILE} | cut -f2 -d=} ++RANLIB := ${shell grep "^RANLIB = " ${SDPA_MAKEFILE} | cut -f2 -d=} + + ################################################################### + |