1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

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
This commit is contained in:
Gerald Pfeifer 2009-09-26 01:02:01 +00:00
parent 4e8232ac6b
commit 7454e883a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242113

View File

@ -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