use apxs -q CFLAGS_SHLIB to get -fPIC, better to send to author

This commit is contained in:
pvalchev 2004-06-12 15:39:08 +00:00
parent 8ea5725079
commit 71b4edf84f

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-Makefile_in,v 1.3 2004/06/12 07:53:19 pvalchev Exp $
$OpenBSD: patch-Makefile_in,v 1.4 2004/06/12 15:39:08 pvalchev Exp $
--- Makefile.in.orig 2001-07-04 08:37:55.000000000 -0600
+++ Makefile.in 2004-06-12 00:55:16.000000000 -0600
@@ -20,12 +20,14 @@ html: FAQ.html Changes.html auth_ldap.ht
@ -6,7 +6,7 @@ $OpenBSD: patch-Makefile_in,v 1.3 2004/06/12 07:53:19 pvalchev Exp $
OBJS=auth_ldap.o auth_ldap_config.o auth_ldap_cache.o auth_ldap_cache_mgr.o
-CFLAGS=`$(APXS) -q CFLAGS` $(FRONTPAGE) $(SSL) $(SHARED_CACHE) $(OPENLDAP)
+CFLAGS=`$(APXS) -q CFLAGS` -fPIC $(FRONTPAGE) $(SSL) $(SHARED_CACHE) $(OPENLDAP) \
+CFLAGS=`$(APXS) -q CFLAGS CFLAGS_SHLIB` $(FRONTPAGE) $(SSL) $(SHARED_CACHE) $(OPENLDAP) \
+ -I/usr/lib/apache/include -I${LOCALBASE}/include
CFLAGS_SHLIB=`$(APXS) -q CFLAGS_SHLIB`
INCLUDEDIR=`$(APXS) -q INCLUDEDIR`