From 65e1e11bfa826f04010ac542677ad401430c779e Mon Sep 17 00:00:00 2001 From: gerald Date: Sat, 26 Sep 2009 01:02:01 +0000 Subject: Have CFLAGS and LDFLAGS set an -rpath to the lang/gcc44 library directory when building with USE_FORTRAN=yes. This makes us use libstdc++.so.6 (and others) brought by this port as opposed to /usr/bin/libstdc++.so.6 that comes with our system compiler which is based on an older version of GCC 4.2. Newer version of GCC run-time libraries with the same soname are always backwards compatible. Feature safe: yes --- Mk/bsd.gcc.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Mk/bsd.gcc.mk') 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 -- cgit