Skip to content

Commit 2e31d7a

Browse files
committed
boots didhiy#3
1 parent 5b1e217 commit 2e31d7a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
245245

246246
HOSTCC = gcc
247247
HOSTCXX = g++
248-
HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -Os -fomit-frame-pointer
249-
HOSTCXXFLAGS = -Os
248+
HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer
249+
HOSTCXXFLAGS = -O2
250250

251251
# Decide whether to build built-in, modular, or both.
252252
# Normally, just do built-in.
@@ -562,9 +562,9 @@ endif # $(dot-config)
562562
all: vmlinux
563563

564564
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
565-
KBUILD_CFLAGS += -Os
565+
KBUILD_CFLAGS += -O2
566566
else
567-
KBUILD_CFLAGS += -Os
567+
KBUILD_CFLAGS += -O2
568568
endif
569569

570570
include $(srctree)/arch/$(SRCARCH)/Makefile

0 commit comments

Comments
 (0)