Properly pass -export-dynamic to the linker, fixes the build with lld 15

This commit is contained in:
jca 2023-01-24 18:09:35 +00:00
parent 2bd7442b35
commit 35484b3a02
2 changed files with 3 additions and 2 deletions

View File

@ -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}

View File

@ -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