mirror of https://github.com/hak5/openwrt-owl.git
build: filter out relative directory entries from $PATH
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48107owl
parent
6a90baf2bf
commit
dd537242a2
|
@ -39,6 +39,13 @@ unexport LPATH
|
||||||
# make sure that a predefined CFLAGS variable does not disturb packages
|
# make sure that a predefined CFLAGS variable does not disturb packages
|
||||||
export CFLAGS=
|
export CFLAGS=
|
||||||
|
|
||||||
|
empty:=
|
||||||
|
space:= $(empty) $(empty)
|
||||||
|
path:=$(subst :,$(space),$(PATH))
|
||||||
|
path:=$(filter-out .%,$(path))
|
||||||
|
path:=$(subst $(space),:,$(path))
|
||||||
|
export PATH:=$(path)
|
||||||
|
|
||||||
unexport TAR_OPTIONS
|
unexport TAR_OPTIONS
|
||||||
|
|
||||||
ifneq ($(shell $(HOSTCC) 2>&1 | grep clang),)
|
ifneq ($(shell $(HOSTCC) 2>&1 | grep clang),)
|
||||||
|
|
Loading…
Reference in New Issue