summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-12-04 00:49:53 -0600
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-12-04 00:49:53 -0600
commita596e9e84c2ccafe145565195cee7eeae57da5b8 (patch)
treefa9169e009c4c9b9f421fd508cfea4814a0293b4 /Makefile
parent8e85e6c3816d2ef1e2337087eb8281a80d4a7b29 (diff)
kbuild: Fix CONFIG_FRAME_POINTER
It only makes sense to check CONFIG_FRAME_POINTER after including .config, otherwise it'll always be unset ;)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 919888c0a47a..3f0090162d57 100644
--- a/Makefile
+++ b/Makefile
@@ -169,9 +169,6 @@ NOSTDINC_FLAGS = -nostdinc -iwithprefix include
CPPFLAGS := -D__KERNEL__ -Iinclude
CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
-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 \
@@ -260,6 +257,10 @@ ifdef CONFIG_MODULES
export EXPORT_FLAGS := -DEXPORT_SYMTAB
endif
+ifndef CONFIG_FRAME_POINTER
+CFLAGS += -fomit-frame-pointer
+endif
+
#
# INSTALL_PATH specifies where to place the updated kernel and system map
# images. Uncomment if you want to place them anywhere other than root.