Commit bd7829ab authored by Sam Ravnborg's avatar Sam Ravnborg

kbuild: explicit enable framepointer

Newer gcc versions automatically turns on -fomit-frame-pointer when
-O2 is specified thus breaking CONFIG_FRAME_POINTER option.
Explicitly specifying -fno-omit-frame-pointer fixes it.

From: Tejun Heo <tj@home-tj.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent dba423de
......@@ -498,7 +498,9 @@ else
CFLAGS += -O2
endif
ifndef CONFIG_FRAME_POINTER
ifdef CONFIG_FRAME_POINTER
CFLAGS += -fno-omit-frame-pointer
else
CFLAGS += -fomit-frame-pointer
endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment