aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2012-11-06 08:23:43 +0800
committergerald <gerald@FreeBSD.org>2012-11-06 08:23:43 +0800
commit104dc47ba33835d8466cabb2fc3d8c4413cb69fd (patch)
tree1b5643995c7d76a3cec1d7e63952841d6b97e8a2
parente5815ca863b478c791e2cf0a861decc6b6b492ff (diff)
downloadfreebsd-ports-gnome-104dc47ba33835d8466cabb2fc3d8c4413cb69fd.tar.gz
freebsd-ports-gnome-104dc47ba33835d8466cabb2fc3d8c4413cb69fd.tar.zst
freebsd-ports-gnome-104dc47ba33835d8466cabb2fc3d8c4413cb69fd.zip
In addition to CFLAGS and LDFLAGS now also CXXFLAGS set an rpath to
the GCC run-time. This extends revision r246991 (2010-01-02) and should not be necessary in most cases since LDFLAGS already covers linking, but one can always compile and link in one swoop, and this makes things consistent between C and C++. Feature safe: yes
-rw-r--r--Mk/bsd.gcc.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/Mk/bsd.gcc.mk b/Mk/bsd.gcc.mk
index 25883ae3aa5e..b22074e9ea09 100644
--- a/Mk/bsd.gcc.mk
+++ b/Mk/bsd.gcc.mk
@@ -202,6 +202,7 @@ CPP:= cpp${V}
. if ${_USE_GCC} != 3.4
_GCC_RUNTIME:= ${LOCALBASE}/lib/gcc${V}
CFLAGS+= -Wl,-rpath=${_GCC_RUNTIME}
+CXXFLAGS+= -Wl,-rpath=${_GCC_RUNTIME}
LDFLAGS+= -Wl,-rpath=${_GCC_RUNTIME}
. if defined (USE_FORTRAN)
. if ${USE_FORTRAN} == yes