only use --wildcards for gnu tar
[openwrt.org/openwrt.git] / include / host.mk
blob:a/include/host.mk -> blob:b/include/host.mk
--- a/include/host.mk
+++ b/include/host.mk
@@ -22,4 +22,8 @@
 			-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
 
+

comments