Skip to content

Commit

Permalink
build: filter out relative directory entries from $PATH
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48107
  • Loading branch information
Felix Fietkau committed Jan 3, 2016
1 parent 6a90baf commit dd53724
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/toplevel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ unexport LPATH
# make sure that a predefined CFLAGS variable does not disturb packages
export CFLAGS=

empty:=
space:= $(empty) $(empty)
path:=$(subst :,$(space),$(PATH))
path:=$(filter-out .%,$(path))
path:=$(subst $(space),:,$(path))
export PATH:=$(path)

unexport TAR_OPTIONS

ifneq ($(shell $(HOSTCC) 2>&1 | grep clang),)
Expand Down

0 comments on commit dd53724

Please sign in to comment.