by kevans91 · 6y ago · 0 comments
Indeed- "external toolchain" includes gcc6[0] and gcc9[1] ports that can be used specifically for building the FreeBSD base system. These are mostly easy to use, install the flavor for whatever architecture you're building and specify CROSS_TOOLCHAIN=<arch>-gcc6 when you build. More/better/complete information (and examples!) at [2].
[0] https://www.freshports.org/devel/freebsd-gcc6
lapack, for example, has USES=fortran[1]. That invokes Uses/fortran.mk[2] and accepts the ports-default fortran compiler, FORTRAN_DEFAULT, which is definedin bsd.default-versions.mk[3] as gfortran (GCC).
[1]: https://svnweb.freebsd.org/ports/head/math/lapack/Makefile?r...
[2]: https://svnweb.freebsd.org/ports/head/Mk/Uses/fortran.mk?rev...
[3]: https://svnweb.freebsd.org/ports/head/Mk/bsd.default-version...