openbsd-ports/www/mod_auth_ldap/patches/patch-Makefile_in
claudio 36ed5c3290 Define LDAP_DEPRECATED because OpenLDAP wants to make sure that every older
app is subtly but totaly broken by removing API functions unless we use the
magic button. Depending on the architecture the code may work or crash horribly
without this. OK sthen@ (there are similar hacks in many other apps)
2009-05-11 19:40:58 +00:00

21 lines
943 B
Plaintext

$OpenBSD: patch-Makefile_in,v 1.5 2009/05/11 19:40:58 claudio Exp $
--- Makefile.in.orig Wed Jul 4 16:37:55 2001
+++ Makefile.in Sun May 10 12:37:14 2009
@@ -20,12 +20,14 @@ html: FAQ.html Changes.html auth_ldap.html
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 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`
EXTRA_LDFLAGS=@LDFLAGS@
LD_SHLIB=`$(APXS) -q LD_SHLIB`
-LDFLAGS_SHLIB=$(EXTRA_LDFLAGS) `$(APXS) -q LDFLAGS_SHLIB` $(AIX_LDFLAGS_SHLIB)
+LDFLAGS_SHLIB=$(EXTRA_LDFLAGS) `$(APXS) -q LDFLAGS_SHLIB` $(AIX_LDFLAGS_SHLIB) \
+ -L${LOCALBASE}/lib -lldap -llber
auth_ldap.so: $(OBJS) $(AIX_EXP)
@echo $(LD_SHLIB) $(LDFLAGS_SHLIB) -o $@ $(OBJS) $(LIBS)