aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-07-16 14:14:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-07-16 14:14:12 +0000
commitd60c2215179f939224cdbd8235a95581fbcec890 (patch)
tree7a5a493fd784d40f3a8d9dd8bede06d6d52752a1
parenta183882230839772aecbfd66affb69a310384829 (diff)
downloadmaster-187ad058-d60c2215179f939224cdbd8235a95581fbcec890.tar.gz
master-187ad058-d60c2215179f939224cdbd8235a95581fbcec890.tar.bz2
master-187ad058-d60c2215179f939224cdbd8235a95581fbcec890.zip
scripts/config: build with gcc instead of clang on mac os x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32749 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--include/toplevel.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index c25b8a51e5..d37ddb9171 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -17,6 +17,7 @@ else
REVISION:=$(shell $(TOPDIR)/scripts/getver.sh)
endif
+HOSTCC ?= gcc
OPENWRTVERSION:=$(RELEASE)$(if $(REVISION), ($(REVISION)))
export RELEASE
export REVISION
@@ -69,12 +70,12 @@ prepare-tmpinfo: FORCE
fi
scripts/config/mconf:
- @$(_SINGLE)$(SUBMAKE) -s -C scripts/config all
+ @$(_SINGLE)$(SUBMAKE) -s -C scripts/config all CC="$(HOSTCC)"
$(eval $(call rdep,scripts/config,scripts/config/mconf))
scripts/config/conf:
- @$(_SINGLE)$(SUBMAKE) -s -C scripts/config conf
+ @$(_SINGLE)$(SUBMAKE) -s -C scripts/config conf CC="$(HOSTCC)"
config: scripts/config/conf prepare-tmpinfo FORCE
$< Config.in