openvpn-auth-ldap: build the C code -fPIC, it is built into auth-ldap.so

which fails on i386. From Brad.
This commit is contained in:
sthen 2022-06-25 08:58:40 +00:00
parent b4e4d1f45b
commit 37c2b72064
2 changed files with 15 additions and 5 deletions

View File

@ -1,11 +1,7 @@
.if ${MACHINE_ARCH} == "i386"
USE_LLD = No
.endif
COMMENT = LDAP authentication plugin for OpenVPN 2.x
VERSION = 2.0.4
REVISION = 0
REVISION = 1
GH_ACCOUNT = threerings
GH_PROJECT = openvpn-auth-ldap
GH_TAGNAME = auth-ldap-${VERSION}

View File

@ -0,0 +1,14 @@
The bit of C code was not being built PIC.
Index: Mk/autoconf.mk.in
--- Mk/autoconf.mk.in.orig
+++ Mk/autoconf.mk.in
@@ -2,7 +2,7 @@ SHELL = @SHELL@
CC = @CC@
-CFLAGS = @CFLAGS@ @DEFS@ -Wall
+CFLAGS = -fPIC @CFLAGS@ @DEFS@ -Wall
OBJCFLAGS = -fPIC @OBJCFLAGS@ ${OBJC_RUNTIME_FLAGS} ${OBJC_PTHREAD_CFLAGS} -fno-strict-aliasing ${CFLAGS}
OBJC_LIBS = -fPIC @OBJC_LIBS@ ${OBJC_PTHREAD_LIBS}