summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDave Jones <davej@suse.de>2002-11-25 02:36:41 -0800
committerDave Jones <davej@codemonkey.org.uk>2002-11-25 02:36:41 -0800
commitcf2dbf6401d4f786a75193b84dff19db060e38a6 (patch)
treeb7630b7e5ff66007225addc94fccacdcc3f20030 /Makefile
parentc7830dae29208aad2d9170d7f00dd756b53dd852 (diff)
[PATCH] CONFIG_FRAME_POINTER
From 2.4, this adds a CONFIG_ option to disable the usage of -fomit-frame-pointer
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e9d34e1f81e7..7708c84f2a3b 100644
--- a/Makefile
+++ b/Makefile
@@ -168,7 +168,10 @@ NOSTDINC_FLAGS = -nostdinc -iwithprefix include
CPPFLAGS := -D__KERNEL__ -Iinclude
CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
- -fomit-frame-pointer -fno-strict-aliasing -fno-common
+ -fno-strict-aliasing -fno-common
+ifndef CONFIG_FRAME_POINTER
+CFLAGS += -fomit-frame-pointer
+endif
AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS)
export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION KERNELRELEASE ARCH \