aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2015-08-09 09:18:21 +0000
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2015-08-09 09:18:21 +0000
commit3b2ea334280eb6fd90baf4cbf2ad6e847f9f6f23 (patch)
treecae527ca0fb509a80a190cfe1ff8f94e12a520f6 /math
parent7783646f65d4a373c3d69c81f9ea96149fc5c5ac (diff)
downloadports-3b2ea334280eb6fd90baf4cbf2ad6e847f9f6f23.tar.gz
ports-3b2ea334280eb6fd90baf4cbf2ad6e847f9f6f23.zip
- Add patch that allows port to build on FreeBSD 10 with i386 architecture.
Notes
Notes: svn path=/head/; revision=393770
Diffstat (limited to 'math')
-rw-r--r--math/octave-forge-interval/files/patch-Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/math/octave-forge-interval/files/patch-Makefile b/math/octave-forge-interval/files/patch-Makefile
new file mode 100644
index 000000000000..dea69d8af150
--- /dev/null
+++ b/math/octave-forge-interval/files/patch-Makefile
@@ -0,0 +1,18 @@
+--- Makefile.orig 2015-08-09 09:08:20 UTC
++++ Makefile
+@@ -25,13 +25,13 @@ OBJ = mpfr_function_d.oct \
+
+ LDFLAGS_MPFR =-lmpfr -lgmp
+ ## Use important flags in XTRA_CFLAGS for OpenMP (workaround for bug #45280)
+-XTRA_CFLAGS =$(shell $(MKOCTFILE) -p XTRA_CFLAGS)
++CFLAG_OPENMP =$(findstring -fopenmp,$(shell $(MKOCTFILE) -p XTRA_CFLAGS))
+
+ all: $(OBJ)
+
+ ## GNU MPFR api oct-files
+ mpfr_matrix_mul_d.oct: mpfr_%.oct: mpfr_%.cc mpfr_commons.cc
+- $(MKOCTFILE) -o $@ $(LDFLAGS_MPFR) $(XTRA_CFLAGS) $<
++ $(MKOCTFILE) -o $@ $(LDFLAGS_MPFR) $(CFLAG_OPENMP) $<
+ mpfr_%.oct: mpfr_%.cc mpfr_commons.cc
+ $(MKOCTFILE) -o $@ $(LDFLAGS_MPFR) $<
+