mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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
This commit is contained in:
parent
dc49aae2c5
commit
256e5eca53
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=514418
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
PORTNAME= math77
|
PORTNAME= math77
|
||||||
PORTVERSION= 6.0
|
PORTVERSION= 6.0
|
||||||
PORTREVISION= 8
|
PORTREVISION= 9
|
||||||
CATEGORIES= math
|
CATEGORIES= math
|
||||||
MASTER_SITES= NL/math
|
MASTER_SITES= NL/math
|
||||||
DISTNAME= ${PORTNAME}
|
DISTNAME= ${PORTNAME}
|
||||||
|
@ -14,7 +14,6 @@ COMMENT= CalTech mathematical subprogram libraries for Fortran 77
|
||||||
LICENSE= BSD3CLAUSE
|
LICENSE= BSD3CLAUSE
|
||||||
|
|
||||||
BROKEN_aarch64= fails to compile: error: unknown architecture native
|
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
|
USES= fortran gmake tar:tgz
|
||||||
WRKSRC= ${WRKDIR}/MATH77
|
WRKSRC= ${WRKDIR}/MATH77
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
# -ggdb to -O3 or -O2.
|
# -ggdb to -O3 or -O2.
|
||||||
|
|
||||||
-FC = /usr/bin/gfortran
|
-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\
|
-funroll-loops -ffpe-trap=zero,overflow,invalid -finit-real=NAN\
|
||||||
- -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -pipe
|
- -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -pipe
|
||||||
+ -ftree-vectorize -pipe
|
+ -ftree-vectorize -pipe
|
||||||
|
|
Loading…
Add table
Reference in a new issue