From b943c10fe72884a08655db7f2a56ca7e91329daf Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sat, 19 Jul 2014 15:10:05 +0200 Subject: [PATCH] Pass preprocessor flags as well in the Makefile This allows better hardening of the binary (e.g. in Debian, hardening flags include pre-processor flags). --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ab0b5f9..781dd50 100644 --- a/Makefile +++ b/Makefile @@ -9,10 +9,10 @@ MTDIR=$(BINDIR) all: mt stinit mt: mt.c - $(CC) $(CFLAGS) $(LDFLAGS) -o mt mt.c + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o mt mt.c stinit: stinit.c - $(CC) $(CFLAGS) $(LDFLAGS) -o stinit stinit.c + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o stinit stinit.c install: mt stinit install -s mt $(MTDIR)