Blame SOURCES/check-password-makefile.patch

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