aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNick Hainke <vincent@systemli.org>2022-09-11 08:15:52 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2022-09-29 19:44:09 +0200
commitaf88bdb1700cae8a789f8a3ea52499f35c29af6f (patch)
tree5c295a232c4bdbba4df70242420f6c6affd888bf /Makefile
parentc670dfb733ef4a35255c4a3df46bfa3834bd9941 (diff)
downloadupstream-af88bdb1700cae8a789f8a3ea52499f35c29af6f.tar.gz
upstream-af88bdb1700cae8a789f8a3ea52499f35c29af6f.tar.bz2
upstream-af88bdb1700cae8a789f8a3ea52499f35c29af6f.zip
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 <https://bugs.gnu.org/39678>. Fixes warnings in the form of: grep: warning: stray \ before / Signed-off-by: Nick Hainke <vincent@systemli.org> (cherry picked from commit a29d3bc48c40c6a2a93ae1806bea2ac26455cdbb) [ fix conflict error ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e18bc18608..11531d4760 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' | head -n 1)
+DISTRO_PKG_CONFIG:=$(shell which -a pkg-config | grep '/usr' | head -n 1)
export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
ifneq ($(OPENWRT_BUILD),1)