Make sure that -export-dynamic is passed to the linker.

This commit is contained in:
Matthias Andree 2014-08-03 07:52:49 +00:00
parent 5f9a969204
commit 5064d58e75
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363854
2 changed files with 6 additions and 3 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= openvpn-auth-ldap PORTNAME= openvpn-auth-ldap
PORTVERSION= 2.0.3 PORTVERSION= 2.0.3
PORTREVISION= 7 PORTREVISION= 8
CATEGORIES= security CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DISTNAME= auth-ldap-${PORTVERSION} DISTNAME= auth-ldap-${PORTVERSION}
@ -33,6 +33,9 @@ OPTIONS_DEFINE= DOCS EXAMPLES
CONFIGURE_ENV+= OBJC="${CC}" CONFIGURE_ENV+= OBJC="${CC}"
post-patch:
${REINPLACE_CMD} 's|-export-dynamic|-Wl,-export-dynamic|' ${WRKSRC}/configure
post-install: post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/openvpn-auth-ldap.so ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/openvpn-auth-ldap.so
.if ${PORT_OPTIONS:MDOCS} .if ${PORT_OPTIONS:MDOCS}

View file

@ -1,5 +1,5 @@
--- tests/Makefile.in.orig 2006-08-01 05:51:52.000000000 +0200 --- ./tests/Makefile.in.orig 2006-08-01 05:51:52.000000000 +0200
+++ tests/Makefile.in 2013-06-09 06:33:07.000000000 +0200 +++ ./tests/Makefile.in 2014-08-03 09:26:42.000000000 +0200
@@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
CFLAGS+= @CHECK_CFLAGS@ -DTEST_DATA=\"${srcdir}/data\" CFLAGS+= @CHECK_CFLAGS@ -DTEST_DATA=\"${srcdir}/data\"
OBJCFLAGS+= @CHECK_CFLAGS@ -DTEST_DATA=\"${srcdir}/data\" OBJCFLAGS+= @CHECK_CFLAGS@ -DTEST_DATA=\"${srcdir}/data\"