Skip to content

Instantly share code, notes, and snippets.

@invisiblek
Created June 7, 2015 16:28
Show Gist options
  • Save invisiblek/237f83b673f6b607efe9 to your computer and use it in GitHub Desktop.
Save invisiblek/237f83b673f6b607efe9 to your computer and use it in GitHub Desktop.
diff --git a/Makefile b/Makefile
index 2407a9b..2d392ea 100755
--- a/Makefile
+++ b/Makefile
@@ -245,8 +245,8 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
HOSTCC = gcc
HOSTCXX = g++
-HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer
-HOSTCXXFLAGS = -O2
+HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O3 -fomit-frame-pointer
+HOSTCXXFLAGS = -O3
# Decide whether to build built-in, modular, or both.
# Normally, just do built-in.
@@ -566,7 +566,7 @@ all: vmlinux
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
else
-KBUILD_CFLAGS += -O2
+KBUILD_CFLAGS += -O3
endif
include $(srctree)/arch/$(SRCARCH)/Makefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment