aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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