adding extra rpath when linking after gcc44 migration.

Feature safe:	yes.
This commit is contained in:
Maho Nakata 2009-10-09 02:02:09 +00:00
parent e8e6e5b1f7
commit df2a6060e1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242594
2 changed files with 21 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= mpqc
PORTVERSION= 2.3.1
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= science parallel
MASTER_SITES= SF
@ -92,6 +92,12 @@ CFLAGS+= -O2 -ffast-math
CXXFLAGS+= -O2 -ffast-math
.endif
EXTRARPATH= -Wl,-rpath=`${CAT} ${WRKSRC}/LIBDIR`
post-patch:
@${DIRNAME} `${CC} -print-file-name=libstdc++.so` > ${WRKSRC}/LIBDIR
@${REINPLACE_CMD} -e 's|%%EXTRARPATH%%|${EXTRARPATH}|g' ${WRKSRC}/lib/LocalMakefile.in
pre-configure:
@${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes."

View file

@ -0,0 +1,14 @@
--- lib/LocalMakefile.in~ 2005-07-01 07:19:39.000000000 +0900
+++ lib/LocalMakefile.in 2009-10-09 09:58:51.000000000 +0900
@@ -41,9 +41,9 @@
LIBTOOL= $(SHELL) $(TOPDIR)/libtool
LTLINK = $(LIBTOOL) --mode=link
ifneq ($(BUILDID),)
- LTLINKLIBOPTS = -rpath $(libdir) -release $(BUILDID) -version-info $(SC_SO_VERSION)
+ LTLINKLIBOPTS = %%EXTRARPATH%% -rpath $(libdir) -release $(BUILDID) -version-info $(SC_SO_VERSION)
else
- LTLINKLIBOPTS = -rpath $(libdir) -version-info $(SC_SO_VERSION)
+ LTLINKLIBOPTS = %%EXTRARPATH%% -rpath $(libdir) -version-info $(SC_SO_VERSION)
endif
LTLINKBINOPTS =
LTCOMP = $(LIBTOOL) --mode=compile