aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mk/bsd.gcc.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mk/bsd.gcc.mk b/Mk/bsd.gcc.mk
index 8e4f48f16b83..f4854874a445 100644
--- a/Mk/bsd.gcc.mk
+++ b/Mk/bsd.gcc.mk
@@ -72,6 +72,8 @@ FC:= gfortran44
F77:= gfortran44
CC:= gcc44
CXX:= g++44
+CFLAGS+= -Wl,-rpath=${PREFIX}/lib/gcc44
+LDFLAGS+= -Wl,-rpath=${PREFIX}/lib/gcc44
# Intel Fortran compiler from lang/ifc.
. elif ${USE_FORTRAN} == ifort