]> git.neil.brown.name Git - history.git/commitdiff
kbuild: Fix CONFIG_FRAME_POINTER
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Wed, 4 Dec 2002 06:49:53 +0000 (00:49 -0600)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Wed, 4 Dec 2002 06:49:53 +0000 (00:49 -0600)
It only makes sense to check CONFIG_FRAME_POINTER after including
.config, otherwise it'll always be unset ;)

Makefile

index 919888c0a47a18f133cb5d07298890cbdbd66ee9..3f0090162d573e6a9ba62e0c8505508f19ed08b7 100644 (file)
--- 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.