]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Makefile: move -D_FORTIFY_SOURCE=2 to -O2 section
authorJaroslav Kysela <perex@perex.cz>
Tue, 2 Oct 2018 16:21:56 +0000 (18:21 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 2 Oct 2018 16:21:56 +0000 (18:21 +0200)
Makefile

index 06951861b6dd39c16f7ab1216bb238150c93e83d..6c45be427a02ac0e2581daf12aa1416f053e1b19 100644 (file)
--- 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