Description: fix some inssues in upstream Makefile and
             add/improve GCC hardening.
Author: Giovani Augusto Ferreira <giovani@riseup.net>
Last-Update: 2015-09-26
Index: elfrc-0.7/Makefile
===================================================================
--- elfrc-0.7.orig/Makefile
+++ elfrc-0.7/Makefile
@@ -1,10 +1,10 @@
-CFLAGS+=-Wall -O -pipe
+CFLAGS += -Wall -O -pipe
 VERSION=0.7
 
 all: elfrc
 
 elfrc: elfrc.o
-	${CC} -o elfrc elfrc.o
+	${CC} ${CFLAGS} ${LDFLAGS} -o elfrc elfrc.o
 
 elfrc.o: config.h
 
@@ -15,9 +15,6 @@ config.h:
 	@echo "#endif" >> config.h
 	@echo "#define ELFRC_VERSION \"${VERSION}\"" >> config.h
 
-check:
-	cd testdata && make check
-
 dist: clean
 	cd .. && \
 		rm -rf elfrc-${VERSION} && \
