aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2004-10-17 06:01:07 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2004-10-17 06:01:07 +0200
commitbd7829aba23654e27df90c2baca600c540464820 (patch)
tree1ece705d95e7ab90ca6c2f258f1a449916e4e6aa /Makefile
parentdba423dee5e38c1918a3bf6fe923babaadfe5b49 (diff)
downloadhistory-bd7829aba23654e27df90c2baca600c540464820.tar.gz
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: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ad9377f8dd4735..27b6b47270ddcf 100644
--- a/Makefile
+++ b/Makefile
@@ -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