Date: Wed, 16 Nov 2022 21:39:50 GMT From: Lorenzo Salvadore <salvadore@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 4191c71fbd22 - main - Mk/Uses/fortran.mk: Make gfortran respect USE_GCC Message-ID: <202211162139.2AGLdojd006463@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/ports/commit/?id=4191c71fbd229e5a96382bc6fa271a1ce5668b0f commit 4191c71fbd229e5a96382bc6fa271a1ce5668b0f Author: Lorenzo Salvadore <salvadore@FreeBSD.org> AuthorDate: 2022-11-16 14:43:40 +0000 Commit: Lorenzo Salvadore <salvadore@FreeBSD.org> CommitDate: 2022-11-16 21:38:54 +0000 Mk/Uses/fortran.mk: Make gfortran respect USE_GCC Allow choosing a specific version of gfortran through USE_GCC variable. PR: 266196 Approved by: thierry (fortran) Co-authored by: thierry --- Mk/Uses/fortran.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mk/Uses/fortran.mk b/Mk/Uses/fortran.mk index 09ebd62b1a0f..d335fad4dc8e 100644 --- a/Mk/Uses/fortran.mk +++ b/Mk/Uses/fortran.mk @@ -14,7 +14,11 @@ fortran_ARGS= ${FORTRAN_DEFAULT} . endif . if ${fortran_ARGS} == gfortran +. if empty(USE_GCC) _GCC_VER= ${GCC_DEFAULT:S/.//} +. else +_GCC_VER= ${_USE_GCC} +. endif BUILD_DEPENDS+= gfortran${_GCC_VER}:lang/gcc${_GCC_VER} RUN_DEPENDS+= gfortran${_GCC_VER}:lang/gcc${_GCC_VER} F77= gfortran${_GCC_VER}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211162139.2AGLdojd006463>