aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/fortran.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mk/Uses/fortran.mk b/Mk/Uses/fortran.mk
index 688c8eb5a49e..fe7da4b2d23e 100644
--- a/Mk/Uses/fortran.mk
+++ b/Mk/Uses/fortran.mk
@@ -16,7 +16,8 @@ fortran_ARGS= gcc
.endif
.if ${fortran_ARGS} == gcc
-_GCC_VER= 46
+.include "${PORTSDIR}/Mk/bsd.default-versions.mk"
+_GCC_VER= ${GCC_DEFAULT:S/.//}
BUILD_DEPENDS+= gfortran${_GCC_VER}:${PORTSDIR}/lang/gcc
RUN_DEPENDS+= gfortran${_GCC_VER}:${PORTSDIR}/lang/gcc
USE_BINUTILS= yes