host.mk: Don't use bash-ism
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22963 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
d9386d548b
commit
ac52578132
|
@ -36,7 +36,7 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
|
||||||
*) HOST_ARCH=`uname -p`;; \
|
*) HOST_ARCH=`uname -p`;; \
|
||||||
esac; \
|
esac; \
|
||||||
GNU_HOST_NAME=`gcc -dumpmachine`; \
|
GNU_HOST_NAME=`gcc -dumpmachine`; \
|
||||||
[ -z "$$GNU_HOST_NAME" -o "$$HOST_OS" == "Darwin" ] && \
|
[ -z "$$GNU_HOST_NAME" -o "$$HOST_OS" = "Darwin" ] && \
|
||||||
GNU_HOST_NAME=`$(TOPDIR)/scripts/config.guess`; \
|
GNU_HOST_NAME=`$(TOPDIR)/scripts/config.guess`; \
|
||||||
echo "HOST_OS:=$$HOST_OS" > $@; \
|
echo "HOST_OS:=$$HOST_OS" > $@; \
|
||||||
echo "HOST_ARCH:=$$HOST_ARCH" >> $@; \
|
echo "HOST_ARCH:=$$HOST_ARCH" >> $@; \
|
||||||
|
|
Loading…
Reference in New Issue