fix GNU_HOST_NAME for non-linux machines
authorFelix Fietkau <nbd@openwrt.org>
Wed, 27 Sep 2006 13:11:47 +0000 (13:11 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 27 Sep 2006 13:11:47 +0000 (13:11 +0000)
SVN-Revision: 4865

openwrt/rules.mk

index 3645b06..768b480 100644 (file)
@@ -76,7 +76,7 @@ HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
        -e 's/i[3-9]86/i386/' \
        )
 
-GNU_HOST_NAME:=$(HOST_ARCH)-pc-linux-gnu
+GNU_HOST_NAME:=$(shell $(HOSTCC) -dumpmachine)
 
 TARGET_CONFIGURE_OPTS:= \
   AR=$(TARGET_CROSS)ar \