From ee9c90d4d99108623176c9512689569a34e6a249 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 15 Jul 2008 22:08:22 +1000 Subject: Allow BUILD_CFLAGS and TARGET_CFLAGS to be specified at configure time Currently, we're unconditionally setting the build and target cflags in the configure script, which means that they can't be easily overwritten. This change conditionally sets these variables if they're not specified during configure, allowing something like: BUILD_CFLAGS=-Werror ./configure Signed-off-by: Jeremy Kerr Signed-off-by: Simon Horman --- util/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/Makefile b/util/Makefile index a1a78ac..948ee63 100644 --- a/util/Makefile +++ b/util/Makefile @@ -5,7 +5,7 @@ $(BIN_TO_HEX): $(srcdir)/util/bin-to-hex.c $(LINK.o) $(CFLAGS) -o $@ $^ $(BIN_TO_HEX): CC=$(BUILD_CC) -$(BIN_TO_HEX): CFLAGS+=$(BUILD_CFLAGS) +$(BIN_TO_HEX): CFLAGS=$(BUILD_CFLAGS) $(BIN_TO_HEX): LDFLAGS= dist += util/Makefile util/bin-to-hex.c -- cgit