aboutsummaryrefslogtreecommitdiff
path: root/generate/unix/Makefile.config
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2015-02-05 00:09:52 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2015-02-05 00:09:52 +0000
commit2872953d4a9c9c4e0fc0b9ab37d0e962909625a0 (patch)
treed125aa97a34ea51a7841c57256f738956bc3de3d /generate/unix/Makefile.config
parente8991236d498c9646c20a8acf0236cf3342dad6f (diff)
downloadsrc-2872953d4a9c9c4e0fc0b9ab37d0e962909625a0.tar.gz
src-2872953d4a9c9c4e0fc0b9ab37d0e962909625a0.zip
Import ACPICA 20150204.vendor/acpica/20150204
Notes
Notes: svn path=/vendor-sys/acpica/dist/; revision=278226 svn path=/vendor-sys/acpica/20150204/; revision=278227; tag=vendor/acpica/20150204
Diffstat (limited to 'generate/unix/Makefile.config')
-rw-r--r--generate/unix/Makefile.config10
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 += \