Skip to content

Commit

Permalink
Makefile: fix stray \ warnings with grep-3.8
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
PolynomialDivision authored and misaka36 committed Sep 29, 2022
1 parent a1825db commit e2eda24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e2eda24

Please sign in to comment.