From 5064d58e75fbdfad5115f8dec92d8513a646458b Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 3 Aug 2014 07:52:49 +0000 Subject: [PATCH] Make sure that -export-dynamic is passed to the linker. --- security/openvpn-auth-ldap/Makefile | 5 ++++- .../{patch-tests-Makefile.in => patch-tests__Makefile.in} | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) rename security/openvpn-auth-ldap/files/{patch-tests-Makefile.in => patch-tests__Makefile.in} (72%) diff --git a/security/openvpn-auth-ldap/Makefile b/security/openvpn-auth-ldap/Makefile index 7b22cddacc05..8153c91e090a 100644 --- a/security/openvpn-auth-ldap/Makefile +++ b/security/openvpn-auth-ldap/Makefile @@ -3,7 +3,7 @@ PORTNAME= openvpn-auth-ldap PORTVERSION= 2.0.3 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} DISTNAME= auth-ldap-${PORTVERSION} @@ -33,6 +33,9 @@ OPTIONS_DEFINE= DOCS EXAMPLES CONFIGURE_ENV+= OBJC="${CC}" +post-patch: + ${REINPLACE_CMD} 's|-export-dynamic|-Wl,-export-dynamic|' ${WRKSRC}/configure + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/openvpn-auth-ldap.so .if ${PORT_OPTIONS:MDOCS} diff --git a/security/openvpn-auth-ldap/files/patch-tests-Makefile.in b/security/openvpn-auth-ldap/files/patch-tests__Makefile.in similarity index 72% rename from security/openvpn-auth-ldap/files/patch-tests-Makefile.in rename to security/openvpn-auth-ldap/files/patch-tests__Makefile.in index 9405979d6338..4c21d67eddf9 100644 --- a/security/openvpn-auth-ldap/files/patch-tests-Makefile.in +++ b/security/openvpn-auth-ldap/files/patch-tests__Makefile.in @@ -1,5 +1,5 @@ ---- 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.orig 2006-08-01 05:51:52.000000000 +0200 ++++ ./tests/Makefile.in 2014-08-03 09:26:42.000000000 +0200 @@ -26,7 +26,7 @@ CFLAGS+= @CHECK_CFLAGS@ -DTEST_DATA=\"${srcdir}/data\" OBJCFLAGS+= @CHECK_CFLAGS@ -DTEST_DATA=\"${srcdir}/data\"