diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2019-02-25 09:24:16 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2019-02-25 09:24:16 +0200 |
commit | 64a58aced869764db527364360e222cb051c3d96 (patch) | |
tree | 3ad1d432e87687a373a8bfc754461a708ab9ec01 /Makefile | |
parent | 6b8df9bf938e2d5a9ffc15996e4f2ed7ceb6a0b1 (diff) |
make: Use -D_FORTIFY_SOURCE=2 by default
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |