projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more portability fixes and a prereq check for gnu tar
[openwrt-10.03/.git]
/
include
/
host.mk
diff --git
a/include/host.mk
b/include/host.mk
index abcf045d01e05327408dcb6e9bc8310b695ee74d..3a5fd9683e3592f4750a80964a321075e388cde7 100644
(file)
--- a/
include/host.mk
+++ b/
include/host.mk
@@
-7,6
+7,8
@@
include $(TOPDIR)/.host.mk
include $(TOPDIR)/.host.mk
+export TAR
+
$(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk
@( \
HOST_OS=`uname`; \
$(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; \
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" >> $@; \
)
)