summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-02-11 03:03:40 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-04-09 21:52:12 +0300
commita624564ebdbd700202b685d19f3204d55d0dfe58 (patch)
tree8a4cf8f167b2c1905b2a402665c1c337f34330c5
parent377b6aa0701752711f7058d5de1081e61cfdc9cb (diff)
Don't override CFLAGS if set
If the CFLAGS environment variable is set, extend it instead of overriding it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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