diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-03 23:13:03 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-03 23:13:03 +0000 |
commit | e66198d15e2529d86aee3941cc8d23304d998e85 (patch) | |
tree | a019cdf82c8a5c452a66d5fdd6dd160798ebd70e | |
parent | 5d71d6dc990a3335f75287e566d75fd3f2dc382b (diff) | |
download | master-187ad058-e66198d15e2529d86aee3941cc8d23304d998e85.tar.gz master-187ad058-e66198d15e2529d86aee3941cc8d23304d998e85.tar.bz2 master-187ad058-e66198d15e2529d86aee3941cc8d23304d998e85.zip |
build: filter out relative directory entries from $PATH
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48107 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | include/toplevel.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk index c8f342b48f..0b5ac2686f 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -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),) |