1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: patch to add gcc hardening
Author: Raphael Mota Ramos <raphaelmota.ti@gmail.com>
Last-Update: 2016-03-07
Index: hexcompare-1.0.4/Makefile
===================================================================
--- hexcompare-1.0.4.orig/Makefile
+++ hexcompare-1.0.4/Makefile
@@ -1,9 +1,9 @@
-CFLAGS = -O3 -Wall -Wextra -pedantic -Wformat-security -std=gnu89
+CFLAGS += -O3 -Wall -Wextra -pedantic -Wformat-security -std=gnu89
all: hexcompare
hexcompare: main.c gui.c
- $(CC) $(CFLAGS) -o hexcompare main.c gui.c -lncurses
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o hexcompare main.c gui.c -lncurses
clean:
rm -f *.o
|