diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-11-14 13:25:10 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-11-14 13:25:41 +0100 |
commit | bb15eac90f21ccc963e061bd565910bb26ed3f37 (patch) | |
tree | 7ca74b0d58a860533c4229a90d029b20099e0dea | |
parent | a6044693039dee22a01f51d4daa54cc3d5e4618b (diff) | |
download | mblaze-bb15eac90f21ccc963e061bd565910bb26ed3f37.tar.gz mblaze-bb15eac90f21ccc963e061bd565910bb26ed3f37.tar.xz mblaze-bb15eac90f21ccc963e061bd565910bb26ed3f37.zip |
GNUmakefile: prefer CFLAGS from env, move hardening to overridable default flags
-rw-r--r-- | GNUmakefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile index d730bd1..79234a4 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,5 +1,5 @@ -CFLAGS=-g -O2 -override CFLAGS:=-Wall -Wno-switch -Wextra -fstack-protector-strong -D_FORTIFY_SOURCE=2 $(CFLAGS) +CFLAGS?=-g -O2 -fstack-protector-strong -D_FORTIFY_SOURCE=2 +override CFLAGS:=-Wall -Wno-switch -Wextra $(CFLAGS) LDLIBS=-lrt OS := $(shell uname) |