1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
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} && \
|