diff options
Diffstat (limited to 'generate/unix/Makefile.config')
-rw-r--r-- | generate/unix/Makefile.config | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config index dd7fd756149e..9d8cb68b17f3 100644 --- a/generate/unix/Makefile.config +++ b/generate/unix/Makefile.config @@ -140,7 +140,15 @@ OPT_CFLAGS ?= $(CWARNINGFLAGS) # some compilers such as gcc 4.4 # ifneq ($(NOOPT),TRUE) -OPT_CFLAGS += -O2 -D_FORTIFY_SOURCE=2 +OPT_CFLAGS += -O2 +endif + +# +# Optionally disable fortify source. This option can cause +# compile errors in toolchains where it is already defined. +# +ifneq ($(NOFORTIFY),TRUE) +OPT_CFLAGS += -D_FORTIFY_SOURCE=2 endif CFLAGS += \ |