summaryrefslogtreecommitdiff
path: root/include/host.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-09-05 16:16:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-09-05 16:16:59 +0000
commit392888845c01b5fb150a003c935ad43e708c9406 (patch)
tree398e8a65a882a67c2bcf781c8940b8dfc6febcee /include/host.mk
parent1c74711ec1358a2dead8d5268ad4d0e8376b5b8b (diff)
downloadmtk-20170518-392888845c01b5fb150a003c935ad43e708c9406.zip
mtk-20170518-392888845c01b5fb150a003c935ad43e708c9406.tar.gz
mtk-20170518-392888845c01b5fb150a003c935ad43e708c9406.tar.bz2
fix build error in tools on darwin on newer macs (patch by dirtyfreebooter)
SVN-Revision: 22934
Diffstat (limited to 'include/host.mk')
-rw-r--r--include/host.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/host.mk b/include/host.mk
index 02365d9..8092e8d 100644
--- a/include/host.mk
+++ b/include/host.mk
@@ -32,11 +32,12 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
HOST_OS=`uname`; \
case "$$HOST_OS" in \
Linux) HOST_ARCH=`uname -m`;; \
+ Darwin) HOST_ARCH=`uname -m`;; \
*) HOST_ARCH=`uname -p`;; \
esac; \
GNU_HOST_NAME=`gcc -dumpmachine`; \
- [ -n "$$GNU_HOST_NAME" ] || \
- GNU_HOST_NAME=`$(SCRIPT_DIR)/config.guess`; \
+ [ -z "$$GNU_HOST_NAME" -o "$$HOST_OS" == "Darwin" ] && \
+ GNU_HOST_NAME=`$(TOPDIR)/scripts/config.guess`; \
echo "HOST_OS:=$$HOST_OS" > $@; \
echo "HOST_ARCH:=$$HOST_ARCH" >> $@; \
echo "GNU_HOST_NAME:=$$GNU_HOST_NAME" >> $@; \