diff --git a/net/openvpn-auth-ldap/Makefile b/net/openvpn-auth-ldap/Makefile index 1eb1e19043c..d1ad3e38021 100644 --- a/net/openvpn-auth-ldap/Makefile +++ b/net/openvpn-auth-ldap/Makefile @@ -1,7 +1,7 @@ COMMENT = LDAP authentication plugin for OpenVPN 2.x VERSION = 2.0.4 -REVISION = 1 +REVISION = 2 GH_ACCOUNT = threerings GH_PROJECT = openvpn-auth-ldap GH_TAGNAME = auth-ldap-${VERSION} diff --git a/net/openvpn-auth-ldap/patches/patch-platform_m4 b/net/openvpn-auth-ldap/patches/patch-platform_m4 index 95315cb4293..9c012c93d47 100644 --- a/net/openvpn-auth-ldap/patches/patch-platform_m4 +++ b/net/openvpn-auth-ldap/patches/patch-platform_m4 @@ -1,4 +1,5 @@ Don't clobber LDFLAGS - ensures configure finds libobjc2. +Properly pass -export-dynamic to the linker. Index: platform.m4 --- platform.m4.orig @@ -8,7 +9,7 @@ Index: platform.m4 PLUGIN_LD_FLAGS="" PLUGIN_SUFFIX=".so" - LDFLAGS="-export-dynamic" -+ LDFLAGS="-export-dynamic ${LDFLAGS}" ++ LDFLAGS="-Wl,-export-dynamic ${LDFLAGS}" ;; esac