mrc0mmand / rpms / openldap

Forked from rpms/openldap 3 years ago
Clone

Blame SOURCES/check-password-makefile.patch

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