Blame SOURCES/check-password-makefile.patch

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