Work around rpath/origin and visibility issues.

This commit is contained in:
Jung-uk Kim 2012-08-29 18:42:58 +00:00
parent 60c396473d
commit aae72ec8d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=303346
2 changed files with 15 additions and 2 deletions

View File

@ -233,6 +233,9 @@ MAKE_ENV+= USE_GMAKE=1 DESTDIR=${LODESTDIR}
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/db${BDB_VER}
LDFLAGS+= -L${LOCALBASE}/lib
# XXX Avoid -rpath pollution from bsd.openssl.mk.
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
WANT_PGSQL_VER= 90+
@ -373,6 +376,8 @@ post-extract:
@${TOUCH} ${WRKSRC}/clone/repos_changed
post-patch:
@${FIND} ${WRKSRC} -type f -print0 | \
${XARGS} -0 ${REINPLACE_CMD} -i '' -e 's#-Wl,-rpath,#-Wl,-z,origin -Wl,-rpath,#g'
@${REINPLACE_CMD} -e 's#5.1 5.0#${BDB_VER}#g' \
-e 's,-ldb$$dash$$dbver,-l${BDB_LIB_NAME},g' \
-e 's,"Linux" \&\& test "z$$enable_graphite","FreeBSD" \&\& test "z$$enable_graphite",g' \

View File

@ -1,6 +1,14 @@
--- ./testtools/source/bridgetest/makefile.mk.orig 2012-08-08 09:00:06.000000000 -0400
+++ ./testtools/source/bridgetest/makefile.mk 2012-08-22 16:18:28.000000000 -0400
@@ -145,16 +145,6 @@
+++ ./testtools/source/bridgetest/makefile.mk 2012-08-27 15:06:28.000000000 -0400
@@ -31,7 +31,6 @@
TARGET=bridgetest
USE_DEFFILE=TRUE
ENABLE_EXCEPTIONS=TRUE
-VISIBILITY_HIDDEN=TRUE
LIBTARGET=NO
.INCLUDE: settings.mk
@@ -145,16 +144,6 @@
runtest : $(DLLDEST)$/uno_types.rdb $(DLLDEST)$/uno_services.rdb makefile.mk \
$(SHL1TARGETN) $(SHL2TARGETN) $(SHL3TARGETN)