From bb15eac90f21ccc963e061bd565910bb26ed3f37 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 14 Nov 2017 13:25:10 +0100 Subject: GNUmakefile: prefer CFLAGS from env, move hardening to overridable default flags --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') 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) -- cgit 1.4.1