View | Details | Raw Unified | Return to bug 246888 | Differences between
and this patch

Collapse All | Expand All

(-)Mk/Uses/fortran.mk (-4 / +13 lines)
Lines 27-36 Link Here
27
.endif
27
.endif
28
.elif ${fortran_ARGS} == gfortran
28
.elif ${fortran_ARGS} == gfortran
29
_GCC_VER=	${GCC_DEFAULT:S/.//}
29
_GCC_VER=	${GCC_DEFAULT:S/.//}
30
BUILD_DEPENDS+=	gfortran${_GCC_VER}:lang/gcc${_GCC_VER}
30
# TODO the next line is necessary but insufficient
31
RUN_DEPENDS+=	gfortran${_GCC_VER}:lang/gcc${_GCC_VER}
31
_USE_GCC:=	${GCC_DEFAULT}
32
F77=		gfortran${_GCC_VER}
32
V:=		${_USE_GCC:S/.//}
33
FC=		gfortran${_GCC_VER}
33
. if ${V} == 10
34
_GCC_PORT:=	gcc${V}-devel
35
. else
36
_GCC_PORT:=	gcc${V}
37
. endif
38
BUILD_DEPENDS+=	gfortran${V}:lang/${_GCC_PORT}
39
RUN_DEPENDS+=	gfortran${V}:lang/${_GCC_PORT}
40
F77=		gfortran${V}
41
FC=		gfortran${V}
42
.endif
34
FFLAGS+=	-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER}
43
FFLAGS+=	-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER}
35
FCFLAGS+=	-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER}
44
FCFLAGS+=	-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER}
36
LDFLAGS+=	-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER} \
45
LDFLAGS+=	-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER} \

Return to bug 246888