Compile fix for 2.6.18-rc1 on Ubuntu Edgy (-fstack-protector)
PATCH 1/1 Compile fix for 2.6.18-rc1 on Ubuntu Edgy (-fstack-protector)
This patch makes it possible to build the 2.6.18-rc1 kernel on Ubuntu Edgy (powerpc architecture).
_________________________________________________________________
Vælg selv hvordan du vil kommunikere - skrift, tale, video eller billeder med MSN Messenger: http://messenger.msn.dk
arch/powerpc/boot/Makefile +4 -0
@@ -41,6 +41,10 @@ src-boot += $(zlib) src-boot := $(addprefix $(obj)/, $(src-boot)) obj-boot := $(addsuffix .o, $(basename $(src-boot))) +# Force gcc to behave correct even for buggy distributions +BOOTCFLAGS += $(call cc-option, -fno-stack-protector,) \ + $(call cc-option, -fno-stack-protector-all,) + BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) quiet_cmd_copy_zlib = COPY $@
Makefile +2 -2
@@ -310,8 +310,8 @@ CPPFLAGS := -D__KERNEL__ $(LINUXI CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common # Force gcc to behave correct even for buggy distributions -CFLAGS += $(call cc-option, -fno-stack-protector-all \ - -fno-stack-protector) +CFLAGS += $(call cc-option, -fno-stack-protector,) \ + $(call cc-option, -fno-stack-protector-all,) AFLAGS := -D__ASSEMBLY__ # Read KERNELRELEASE from include/config/kernel.release (if it exists)