File gld-1.6_cflags.patch of Package gld
Index: Makefile.in =================================================================== --- Makefile.in.orig +++ Makefile.in @@ -2,32 +2,28 @@ all: gld gld: cnf.o server.o sql.o sockets.o greylist.o gld.h @CC@ -O2 @DEFS@ -Wall server.o sql.o sockets.o cnf.o greylist.o @LIBS@ @SQL_LIBS@ -o gld - strip gld sockets.o: sockets.c sockets.h - @CC@ -O2 @DEFS@ -Wall -c sockets.c + @CC@ -O2 $(CFLAGS) @DEFS@ -Wall -c sockets.c cnf.o: cnf.c gld.h - @CC@ -O2 @DEFS@ -Wall -c cnf.c + @CC@ -O2 $(CFLAGS) @DEFS@ -Wall -c cnf.c greylist.o: greylist.c gld.h - @CC@ -O2 @DEFS@ -Wall -c greylist.c + @CC@ -O2 $(CFLAGS) @DEFS@ -Wall -c greylist.c server.o: server.c gld.h - @CC@ -O2 @DEFS@ -Wall -c server.c + @CC@ -O2 $(CFLAGS) @DEFS@ -Wall -c server.c sql.o: sql.c - @CC@ -O2 @DEFS@ @SQL_CFLAGS@ -Wall -c sql.c + @CC@ -O2 $(CFLAGS) @DEFS@ @SQL_CFLAGS@ -Wall -c sql.c clean: rm -f gld *.o install: gld gld.conf - mkdir -p /usr/local/bin - cp gld /usr/local/bin - chmod 700 /usr/local/bin/gld - cp gld.conf /etc/gld.conf.sample - chmod 600 /etc/gld.conf.sample + install -m 0755 -Dd $(DESTDIR)/usr/sbin + install -m 0755 gld $(DESTDIR)/usr/sbin/gld distclean: clean rm -f Makefile config.status config.log config.cache