diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-20 10:01:12 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-20 10:01:12 +0000 |
| commit | ee921393a513d10c7a28d41a9b2eaec174a8cd0f (patch) | |
| tree | 2d34b6abc996d810d95cb5d612b2bed404d20f7f | |
| parent | bb0baed564489c678204a54d97cee9d57a4a1189 (diff) | |
| download | busybox-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-- | Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
| @@ -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 | ||
| 186 | HOSTCC = gcc | ||
| 187 | HOSTCXX = g++ | ||
| 188 | HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer | ||
| 189 | HOSTCXXFLAGS = -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 |
| 263 | MAKEFLAGS += --include-dir=$(srctree) | 258 | MAKEFLAGS += --include-dir=$(srctree) |
| 264 | 259 | ||
| 260 | HOSTCC = gcc | ||
| 261 | HOSTCXX = g++ | ||
| 262 | HOSTCFLAGS := | ||
| 263 | HOSTCXXFLAGS := | ||
| 265 | # We need some generic definitions | 264 | # We need some generic definitions |
| 266 | include $(srctree)/scripts/Kbuild.include | 265 | include $(srctree)/scripts/Kbuild.include |
| 267 | 266 | ||
| 267 | HOSTCFLAGS += $(call hostcc-option,-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer,) | ||
| 268 | HOSTCXXFLAGS += -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 | ||
