diff options
Diffstat (limited to 'openwrt/include/host.mk')
-rw-r--r-- | openwrt/include/host.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openwrt/include/host.mk b/openwrt/include/host.mk index abcf045..3a5fd96 100644 --- a/openwrt/include/host.mk +++ b/openwrt/include/host.mk @@ -7,6 +7,8 @@ include $(TOPDIR)/.host.mk +export TAR + $(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk @( \ HOST_OS=`uname`; \ @@ -23,5 +25,7 @@ $(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk if tar --version 2>&1 | grep 'GNU' >/dev/null; then \ echo "TAR_WILDCARDS:=--wildcards" >> $@; \ fi; \ + TAR=`which gtar tar | head -n 1`; \ + echo "TAR:=$$TAR" >> $@; \ ) |