Blame SOURCES/check-password-makefile.patch

e4ff3b
--- a/Makefile	2009-10-31 18:59:06.000000000 +0100
e4ff3b
+++ b/Makefile	2014-12-17 09:42:37.586079225 +0100
e4ff3b
@@ -13,22 +13,11 @@
e4ff3b
 #
e4ff3b
 CONFIG=/etc/openldap/check_password.conf
e4ff3b
 
e4ff3b
-OPT=-g -O2 -Wall -fpic 						\
e4ff3b
-	-DHAVE_CRACKLIB -DCRACKLIB_DICTPATH="\"$(CRACKLIB)\""	\
e4ff3b
-	-DCONFIG_FILE="\"$(CONFIG)\""					\
e4ff3b
+CFLAGS+=-fpic                                                  \
e4ff3b
+	-DHAVE_CRACKLIB -DCRACKLIB_DICTPATH="\"$(CRACKLIB)\""  \
e4ff3b
+	-DCONFIG_FILE="\"$(CONFIG)\""                          \
e4ff3b
 	-DDEBUG
e4ff3b
 
e4ff3b
-# Where to find the OpenLDAP headers.
e4ff3b
-#
e4ff3b
-LDAP_INC=-I/home/pyb/tmp/openldap-2.3.39/include \
e4ff3b
-	 -I/home/pyb/tmp/openldap-2.3.39/servers/slapd
e4ff3b
-
e4ff3b
-# Where to find the CrackLib headers.
e4ff3b
-#
e4ff3b
-CRACK_INC=
e4ff3b
-
e4ff3b
-INCS=$(LDAP_INC) $(CRACK_INC)
e4ff3b
-
e4ff3b
 LDAP_LIB=-lldap_r -llber
e4ff3b
 
e4ff3b
 # Comment out this line if you do NOT want to use the cracklib.
e4ff3b
@@ -45,10 +34,10 @@
e4ff3b
 all: 	check_password
e4ff3b
 
e4ff3b
 check_password.o:
e4ff3b
-	$(CC) $(OPT) -c $(INCS) check_password.c
e4ff3b
+	$(CC) $(CFLAGS) -c $(LDAP_INC) check_password.c
e4ff3b
 
e4ff3b
 check_password: clean check_password.o
e4ff3b
-	$(CC) -shared -o check_password.so check_password.o $(CRACKLIB_LIB)
e4ff3b
+	$(CC) $(LDFLAGS) -shared -o check_password.so check_password.o $(CRACKLIB_LIB)
e4ff3b
 
e4ff3b
 install: check_password
e4ff3b
 	cp -f check_password.so ../../../usr/lib/openldap/modules/