Author: nbd Date: 2016-01-04 00:13:03 +0100 (Mon, 04 Jan 2016) New Revision: 48107
Modified: trunk/include/toplevel.mk Log: build: filter out relative directory entries from $PATH Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/include/toplevel.mk =================================================================== --- trunk/include/toplevel.mk 2016-01-03 20:58:02 UTC (rev 48106) +++ trunk/include/toplevel.mk 2016-01-03 23:13:03 UTC (rev 48107) @@ -39,6 +39,13 @@ # 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),) _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
