summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2007-06-20 10:01:12 +0000
committerBernhard Reutner-Fischer2007-06-20 10:01:12 +0000
commitee921393a513d10c7a28d41a9b2eaec174a8cd0f (patch)
tree2d34b6abc996d810d95cb5d612b2bed404d20f7f /Makefile
parentbb0baed564489c678204a54d97cee9d57a4a1189 (diff)
downloadbusybox-ee921393a513d10c7a28d41a9b2eaec174a8cd0f.zip
busybox-ee921393a513d10c7a28d41a9b2eaec174a8cd0f.tar.gz
- do not hardcode HOSTCFLAGS to gcc specific flags. Fixes errors when not using gcc as HOSTCC
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 4a87573..afb4663 100644
--- a/Makefile
+++ b/Makefile
@@ -183,11 +183,6 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi ; fi)
-HOSTCC = gcc
-HOSTCXX = g++
-HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-HOSTCXXFLAGS = -O2
-
# Decide whether to build built-in, modular, or both.
# Normally, just do built-in.
@@ -262,9 +257,16 @@ export quiet Q KBUILD_VERBOSE
# Look for make include files relative to root of kernel src
MAKEFLAGS += --include-dir=$(srctree)
+HOSTCC = gcc
+HOSTCXX = g++
+HOSTCFLAGS :=
+HOSTCXXFLAGS :=
# We need some generic definitions
include $(srctree)/scripts/Kbuild.include
+HOSTCFLAGS += $(call hostcc-option,-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer,)
+HOSTCXXFLAGS += -O2
+
# For maximum performance (+ possibly random breakage, uncomment
# the following)