aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.gcc.mk
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2011-10-08 15:37:53 +0800
committergerald <gerald@FreeBSD.org>2011-10-08 15:37:53 +0800
commitf97f2a5ddaf7cabbc97a954d7322ef84b9d44cfe (patch)
tree50bd714d0125ac32a3ed1a903bb6d5acc9489074 /Mk/bsd.gcc.mk
parentd26811c4595dd1eba0027c79960542ec409e8b31 (diff)
downloadfreebsd-ports-gnome-f97f2a5ddaf7cabbc97a954d7322ef84b9d44cfe.tar.gz
freebsd-ports-gnome-f97f2a5ddaf7cabbc97a954d7322ef84b9d44cfe.tar.zst
freebsd-ports-gnome-f97f2a5ddaf7cabbc97a954d7322ef84b9d44cfe.zip
Reference the GCC run-time libraries via FFLAGS, too, in addition to
CFLAGS and LDFLAGS, if USE_FORTRAN=yes has been specified. Submitted by: bf
Diffstat (limited to 'Mk/bsd.gcc.mk')
-rw-r--r--Mk/bsd.gcc.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/bsd.gcc.mk b/Mk/bsd.gcc.mk
index 7c825ec4a94a..f9d05efce522 100644
--- a/Mk/bsd.gcc.mk
+++ b/Mk/bsd.gcc.mk
@@ -182,6 +182,9 @@ CPP:= cpp${V}
. if ${_USE_GCC} != 3.4
CFLAGS+= -Wl,-rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS}
LDFLAGS+= -Wl,-rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS}
+. if ${USE_FORTRAN} == yes
+FFLAGS+= -Wl,-rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS}
+. endif
. endif
. endif
. endif