aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-08-16 15:41:16 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-08-16 15:41:16 -0400
commit774bd8613d0188cda72408f8ffce258d73953cad (patch)
treeb5f2eaeecd41c868d83d6aa443da776852cd4c95
parent223ddcea898940b0b02bd6e624dbba3507c97365 (diff)
parentc9eca0b91015bc685c2f35a50efc63d73fdf943a (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-2.6.18
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c53ed568a33a..8406d02c6385 100644
--- a/Makefile
+++ b/Makefile
@@ -309,9 +309,6 @@ CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE)
309 309
310CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ 310CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
311 -fno-strict-aliasing -fno-common 311 -fno-strict-aliasing -fno-common
312# Force gcc to behave correct even for buggy distributions
313CFLAGS += $(call cc-option, -fno-stack-protector)
314
315AFLAGS := -D__ASSEMBLY__ 312AFLAGS := -D__ASSEMBLY__
316 313
317# Read KERNELRELEASE from include/config/kernel.release (if it exists) 314# Read KERNELRELEASE from include/config/kernel.release (if it exists)
@@ -486,6 +483,8 @@ else
486CFLAGS += -O2 483CFLAGS += -O2
487endif 484endif
488 485
486include $(srctree)/arch/$(ARCH)/Makefile
487
489ifdef CONFIG_FRAME_POINTER 488ifdef CONFIG_FRAME_POINTER
490CFLAGS += -fno-omit-frame-pointer $(call cc-option,-fno-optimize-sibling-calls,) 489CFLAGS += -fno-omit-frame-pointer $(call cc-option,-fno-optimize-sibling-calls,)
491else 490else
@@ -500,7 +499,8 @@ ifdef CONFIG_DEBUG_INFO
500CFLAGS += -g 499CFLAGS += -g
501endif 500endif
502 501
503include $(srctree)/arch/$(ARCH)/Makefile 502# Force gcc to behave correct even for buggy distributions
503CFLAGS += $(call cc-option, -fno-stack-protector)
504 504
505# arch Makefile may override CC so keep this after arch Makefile is included 505# arch Makefile may override CC so keep this after arch Makefile is included
506NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) 506NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)