- Add patch that allows port to build on FreeBSD 10 with i386 architecture.

Reference:	http://beefy5.nyi.freebsd.org/data/101i386-default/393750/logs/octave-forge-interval-1.1.0.log
Submitted by:	Oliver Heimlich <oheim@posteo.de>
This commit is contained in:
Stephen Montgomery-Smith 2015-08-09 09:18:21 +00:00
parent 7783646f65
commit 3b2ea33428
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=393770

View file

@ -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) $<