summaryrefslogtreecommitdiff
path: root/openwrt/include/host.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-10 17:03:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-10 17:03:38 +0000
commit2122cf17170ced9745c8a1b57d336ce73000bd52 (patch)
tree76df07cd9392015f52c8afe8c405696081aa08ba /openwrt/include/host.mk
parent6d7097f89976fee9da23ef798d687e9b0d57f276 (diff)
downloadmtk-20170518-2122cf17170ced9745c8a1b57d336ce73000bd52.zip
mtk-20170518-2122cf17170ced9745c8a1b57d336ce73000bd52.tar.gz
mtk-20170518-2122cf17170ced9745c8a1b57d336ce73000bd52.tar.bz2
only use --wildcards for gnu tar
SVN-Revision: 5022
Diffstat (limited to 'openwrt/include/host.mk')
-rw-r--r--openwrt/include/host.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/openwrt/include/host.mk b/openwrt/include/host.mk
index b4580e2..6458881 100644
--- a/openwrt/include/host.mk
+++ b/openwrt/include/host.mk
@@ -22,3 +22,7 @@ $(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk
-e 's/cris.*/cris/' \
-e 's/i[3-9]86/i386/'`" >> $@
echo "GNU_HOST_NAME:=`$(HOSTCC) -dumpmachine`" >> $@
+ if tar --version 2>&1 | grep 'GNU' >/dev/null; then \
+ echo "TAR_OPTIONS+=--wildcards" >> $@; \
+ fi
+