From: Jaroslav Kysela Date: Tue, 2 Oct 2018 16:21:56 +0000 (+0200) Subject: Makefile: move -D_FORTIFY_SOURCE=2 to -O2 section X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75074cb567418fbf9f321dbf5e99b4ab3bab7adf;p=thirdparty%2Ftvheadend.git Makefile: move -D_FORTIFY_SOURCE=2 to -O2 section --- diff --git a/Makefile b/Makefile index 06951861b..6c45be427 100644 --- a/Makefile +++ b/Makefile @@ -32,11 +32,11 @@ LANGUAGES ?= $(LANGUAGES_ALL) # # https://wiki.debian.org/Hardening -CFLAGS += -g -D_FORTIFY_SOURCE=2 +CFLAGS += -g ifeq ($(CONFIG_CCDEBUG),yes) CFLAGS += -O0 else -CFLAGS += -O2 +CFLAGS += -O2 -D_FORTIFY_SOURCE=2 endif ifeq ($(CONFIG_PIE),yes) CFLAGS += -fPIE