From: Martin Steigerwald Date: Tue, 4 Jul 2023 12:29:14 +0000 (+0200) Subject: Keep C pre processor hardening build flags. X-Git-Tag: fio-3.36~73^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=2810cf2863a4b63dab7c434f2fbf3263cc69e4a9;p=fio.git Keep C pre processor hardening build flags. This allows for distributions like Debian to apply hardening flags without patching the makefile. Signed-off-by: Martin Steigerwald --- diff --git a/Makefile b/Makefile index 6d7fd4e2..cc8164b2 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ include config-host.mak endif DEBUGFLAGS = -DFIO_INC_DEBUG -CPPFLAGS= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFIO_INTERNAL $(DEBUGFLAGS) +CPPFLAGS+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFIO_INTERNAL $(DEBUGFLAGS) OPTFLAGS= -g -ffast-math FIO_CFLAGS= -std=gnu99 -Wwrite-strings -Wall -Wdeclaration-after-statement $(OPTFLAGS) $(EXTFLAGS) $(BUILD_CFLAGS) -I. -I$(SRCDIR) LIBS += -lm $(EXTLIBS)