aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-06-20 10:01:12 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-06-20 10:01:12 +0000
commitee921393a513d10c7a28d41a9b2eaec174a8cd0f (patch)
tree2d34b6abc996d810d95cb5d612b2bed404d20f7f
parentbb0baed564489c678204a54d97cee9d57a4a1189 (diff)
downloadbusybox-w32-ee921393a513d10c7a28d41a9b2eaec174a8cd0f.tar.gz
busybox-w32-ee921393a513d10c7a28d41a9b2eaec174a8cd0f.tar.bz2
busybox-w32-ee921393a513d10c7a28d41a9b2eaec174a8cd0f.zip
- do not hardcode HOSTCFLAGS to gcc specific flags. Fixes errors when not using gcc as HOSTCC
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 4a87573b7..afb4663e8 100644
--- a/Makefile
+++ b/Makefile
@@ -183,11 +183,6 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
183 else if [ -x /bin/bash ]; then echo /bin/bash; \ 183 else if [ -x /bin/bash ]; then echo /bin/bash; \
184 else echo sh; fi ; fi) 184 else echo sh; fi ; fi)
185 185
186HOSTCC = gcc
187HOSTCXX = g++
188HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
189HOSTCXXFLAGS = -O2
190
191# Decide whether to build built-in, modular, or both. 186# Decide whether to build built-in, modular, or both.
192# Normally, just do built-in. 187# Normally, just do built-in.
193 188
@@ -262,9 +257,16 @@ export quiet Q KBUILD_VERBOSE
262# Look for make include files relative to root of kernel src 257# Look for make include files relative to root of kernel src
263MAKEFLAGS += --include-dir=$(srctree) 258MAKEFLAGS += --include-dir=$(srctree)
264 259
260HOSTCC = gcc
261HOSTCXX = g++
262HOSTCFLAGS :=
263HOSTCXXFLAGS :=
265# We need some generic definitions 264# We need some generic definitions
266include $(srctree)/scripts/Kbuild.include 265include $(srctree)/scripts/Kbuild.include
267 266
267HOSTCFLAGS += $(call hostcc-option,-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer,)
268HOSTCXXFLAGS += -O2
269
268# For maximum performance (+ possibly random breakage, uncomment 270# For maximum performance (+ possibly random breakage, uncomment
269# the following) 271# the following)
270 272