summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2019-02-25 09:24:16 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2019-02-25 09:24:16 +0200
commit64a58aced869764db527364360e222cb051c3d96 (patch)
tree3ad1d432e87687a373a8bfc754461a708ab9ec01
parent6b8df9bf938e2d5a9ffc15996e4f2ed7ceb6a0b1 (diff)
make: Use -D_FORTIFY_SOURCE=2 by default
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 88e45a6..8ac9199 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,9 @@ MAKEFLAGS += --no-builtin-rules
WARNINGS := -Wall -Wextra -Wpedantic -Wformat=2 -Wstrict-aliasing=3 -Wstrict-overflow=5 -Wstack-usage=64000 \
-Wfloat-equal -Wcast-align -Wpointer-arith -Wchar-subscripts -Warray-bounds=2
-override CFLAGS ?= -g
-override CFLAGS += -std=c11 $(WARNINGS)
+override CFLAGS ?= -g -O2 $(WARNINGS)
+override CFLAGS += -std=c11
+override CPPFLAGS ?= -D_FORTIFY_SOURCE=2
override CPPFLAGS += -Iinclude
override LDFLAGS += -fPIC