From e2eda24e2178bd0401341c0c0581e3630c3c4899 Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Sun, 11 Sep 2022 08:15:52 +0200 Subject: [PATCH] Makefile: fix stray \ warnings with grep-3.8 We simply grep for "/usr". So no need for "-E" or "\/". Furthermore, in the new grep versions this creates warnings. As written in the grep-3.8 announcement: Regular expressions with stray backslashes now cause warnings, as their unspecified behavior can lead to unexpected results. For example, '\a' and 'a' are not always equivalent . Fixes warnings in the form of: grep: warning: stray \ before / Signed-off-by: Nick Hainke --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 791b49d3b..5bf219335 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ $(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the OpenWrt dir world: -DISTRO_PKG_CONFIG:=$(shell which -a pkg-config | grep -E '\/usr' -m 1) +DISTRO_PKG_CONFIG:=$(shell which -a pkg-config | grep '/usr' -m 1) export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH) ifneq ($(OPENWRT_BUILD),1)