Blame SOURCES/check-password-makefile.patch

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