summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Porcedda <fabio.porcedda@gmail.com>2015-01-01 21:03:50 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-01-02 16:34:15 +0100
commitfffb68a83fde238523d330fc8ada63580bbc46a8 (patch)
tree9591566505a92b3e2744c4e4e63e6d4ceac10a9a
parentaa441aa84c38ad5319c4ff7fb27c84530e19c204 (diff)
downloadbuildroot-fffb68a83fde238523d330fc8ada63580bbc46a8.tar.gz
buildroot-fffb68a83fde238523d330fc8ada63580bbc46a8.zip
Makefile: improve detection of make "-s" flag
Because it's just checking the presence of the "s" character even a make --warn-undefined-variables is detected as a silent build. Fix that by filtering out long options. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Cc: Arnout Vandecappelle <arnout@mind.be> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5e0b4f254a..9995df74ac 100644
--- a/Makefile
+++ b/Makefile
@@ -304,7 +304,7 @@ GNU_HOST_NAME := $(shell support/gnuconfig/config.guess)
TARGETS :=
# silent mode requested?
-QUIET := $(if $(findstring s,$(MAKEFLAGS)),-q)
+QUIET := $(if $(findstring s,$(filter-out --%,$(MAKEFLAGS))),-q)
# Strip off the annoying quoting
ARCH := $(call qstrip,$(BR2_ARCH))
OpenPOWER on IntegriCloud