From a624564ebdbd700202b685d19f3204d55d0dfe58 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 11 Feb 2018 03:03:40 +0200 Subject: Don't override CFLAGS if set If the CFLAGS environment variable is set, extend it instead of overriding it. Signed-off-by: Laurent Pinchart --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 827c8b0..2c5ec62 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CROSS_COMPILE ?= CC := $(CROSS_COMPILE)gcc -CFLAGS ?= -O2 -W -Wall -Iinclude +CFLAGS += -O2 -W -Wall -Iinclude LDFLAGS ?= LIBS := -lrt -- cgit v1.2.3