merge gnutar fix from r17575 to 8.09
authorFelix Fietkau <nbd@openwrt.org>
Sat, 19 Sep 2009 17:40:12 +0000 (17:40 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 19 Sep 2009 17:40:12 +0000 (17:40 +0000)
SVN-Revision: 17612

include/host.mk

index 9d0c64372a3075634d95914971b05a4c3cacc986..b93ab8d536d2f0df3e973ea271b1c090dca04264 100644 (file)
@@ -30,6 +30,7 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
                echo "HOST_ARCH:=$$HOST_ARCH" >> $@; \
                echo "GNU_HOST_NAME:=$$GNU_HOST_NAME" >> $@; \
                TAR=`which gtar 2>/dev/null`; \
+               [ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which gnutar 2>/dev/null`; \
                [ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which tar 2>/dev/null`; \
                echo "TAR:=$$TAR" >> $@; \
                FIND=`which gfind 2>/dev/null`; \