diff options
-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 | ||