From b2e7e6db60f70b761268314cc97f5ecd2d033240 Mon Sep 17 00:00:00 2001 From: pkubaj Date: Sun, 13 Oct 2019 20:23:44 +0000 Subject: [PATCH] math/math77: fix build on GCC architectures Don't use -march=native, it breaks compilation with GCC. Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D21995 --- math/math77/Makefile | 3 +-- math/math77/files/patch-makefile | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/math/math77/Makefile b/math/math77/Makefile index ffd8c41436e8..d675ec853ce1 100644 --- a/math/math77/Makefile +++ b/math/math77/Makefile @@ -2,7 +2,7 @@ PORTNAME= math77 PORTVERSION= 6.0 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= math MASTER_SITES= NL/math DISTNAME= ${PORTNAME} @@ -14,7 +14,6 @@ COMMENT= CalTech mathematical subprogram libraries for Fortran 77 LICENSE= BSD3CLAUSE BROKEN_aarch64= fails to compile: error: unknown architecture native -BROKEN_powerpc64= fails to compile: error: unrecognized command line option -march=native USES= fortran gmake tar:tgz WRKSRC= ${WRKDIR}/MATH77 diff --git a/math/math77/files/patch-makefile b/math/math77/files/patch-makefile index d5234e097df3..bb5348fc4816 100644 --- a/math/math77/files/patch-makefile +++ b/math/math77/files/patch-makefile @@ -5,7 +5,8 @@ # -ggdb to -O3 or -O2. -FC = /usr/bin/gfortran - std_flags=-march=native -fimplicit-none -fno-f2c -fno-backslash\ +-std_flags=-march=native -fimplicit-none -fno-f2c -fno-backslash\ ++std_flags=-fimplicit-none -fno-f2c -fno-backslash\ -funroll-loops -ffpe-trap=zero,overflow,invalid -finit-real=NAN\ - -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -pipe + -ftree-vectorize -pipe