From 35484b3a02edc4f169cbdaa523ad74bf1ac3fb19 Mon Sep 17 00:00:00 2001 From: jca Date: Tue, 24 Jan 2023 18:09:35 +0000 Subject: [PATCH] Properly pass -export-dynamic to the linker, fixes the build with lld 15 --- net/openvpn-auth-ldap/Makefile | 2 +- net/openvpn-auth-ldap/patches/patch-platform_m4 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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