Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jun 2020 07:19:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 246700] [exp-run] Update GCC_DEFAULT from 9 to 10
Message-ID:  <bug-246700-7788-USZML6JIrj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-246700-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-246700-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246700

--- Comment #28 from Tobias Kortkamp <tobik@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} =3D=3D gfortran && ${GCC_DEFAULT} >=3D 10
FFLAGS+=3D        -fallow-invalid-boz
.endif

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246700-7788-USZML6JIrj>