X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f21778d9c29b75f073c3d41208f0eaeedfbd1b1e..66ba7ac042972065d06ce3bdb09bbe3b42368057:/include/host.mk?ds=sidebyside diff --git a/include/host.mk b/include/host.mk index b4580e2b7..9eee20fcf 100644 --- a/include/host.mk +++ b/include/host.mk @@ -8,8 +8,8 @@ include $(TOPDIR)/.host.mk $(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk - echo "HOST_OS:=`uname`" > $@ - echo "HOST_ARCH:=` \ + @echo "HOST_OS:=`uname`" > $@ + @echo "HOST_ARCH:=` \ $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \ -e 's/sparc.*/sparc/' \ -e 's/arm.*/arm/' \ @@ -21,4 +21,8 @@ $(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk -e 's/mipsel-.*/mipsel/' \ -e 's/cris.*/cris/' \ -e 's/i[3-9]86/i386/'`" >> $@ - echo "GNU_HOST_NAME:=`$(HOSTCC) -dumpmachine`" >> $@ + @echo "GNU_HOST_NAME:=`$(HOSTCC) -dumpmachine`" >> $@ + @if tar --version 2>&1 | grep 'GNU' >/dev/null; then \ + echo "TAR_WILDCARDS:=--wildcards" >> $@; \ + fi +