diff options
author | gerald <gerald@FreeBSD.org> | 2012-11-06 08:23:43 +0800 |
---|---|---|
committer | gerald <gerald@FreeBSD.org> | 2012-11-06 08:23:43 +0800 |
commit | 104dc47ba33835d8466cabb2fc3d8c4413cb69fd (patch) | |
tree | 1b5643995c7d76a3cec1d7e63952841d6b97e8a2 | |
parent | e5815ca863b478c791e2cf0a861decc6b6b492ff (diff) | |
download | freebsd-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.mk | 1 |
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 |