[Bug 246700] [exp-run] Update GCC_DEFAULT from 9 to 10

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jun 25 07:19:16 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246700

--- Comment #28 from Tobias Kortkamp <tobik at freebsd.org> ---
Some of the Fortran ports (for instance cad/NASTRAN-95) can be
unbroken by passing new compiler flags to the build.  Some like
-fallow-invalid-boz are only recognized by GCC 10 and not older
versions.  I cannot just add them without breaking the build with
GCC 9 or older.  What is the right idiom to check the GCC version
in ports?  Is this ok?

.if ${FORTRAN_DEFAULT} == gfortran && ${GCC_DEFAULT} >= 10
FFLAGS+=        -fallow-invalid-boz
.endif

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list