about summary refs log tree commit diff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-11-14 13:25:10 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-11-14 13:25:41 +0100
commitbb15eac90f21ccc963e061bd565910bb26ed3f37 (patch)
tree7ca74b0d58a860533c4229a90d029b20099e0dea /GNUmakefile
parenta6044693039dee22a01f51d4daa54cc3d5e4618b (diff)
downloadmblaze-bb15eac90f21ccc963e061bd565910bb26ed3f37.tar.gz
mblaze-bb15eac90f21ccc963e061bd565910bb26ed3f37.tar.xz
mblaze-bb15eac90f21ccc963e061bd565910bb26ed3f37.zip
GNUmakefile: prefer CFLAGS from env, move hardening to overridable default flags
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile4
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)