* [PATCH 2.6.18-rc1] Compile fix for 2.6.18-rc1 on Ubuntu Edgy (-fstack-protector)
@ 2006-07-06 11:28 Niels Kristian Bech Jensen
0 siblings, 0 replies; only message in thread
From: Niels Kristian Bech Jensen @ 2006-07-06 11:28 UTC (permalink / raw)
To: linux-kernel, linux-ppc
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: linux-2.6.18-rc1.diff --]
[-- Type: text/x-patch; name="linux-2.6.18-rc1.diff", Size: 1483 bytes --]
diff -uprN linux-2.6.18-rc1.orig/arch/powerpc/boot/Makefile linux-2.6.18-rc1/arch/powerpc/boot/Makefile
--- linux-2.6.18-rc1.orig/arch/powerpc/boot/Makefile 2006-07-06 12:26:57.000000000 +0200
+++ linux-2.6.18-rc1/arch/powerpc/boot/Makefile 2006-07-06 11:31:22.000000000 +0200
@@ -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 $@
diff -uprN linux-2.6.18-rc1.orig/Makefile linux-2.6.18-rc1/Makefile
--- linux-2.6.18-rc1.orig/Makefile 2006-07-06 12:26:49.000000000 +0200
+++ linux-2.6.18-rc1/Makefile 2006-07-06 11:30:09.000000000 +0200
@@ -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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-06 11:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-06 11:28 [PATCH 2.6.18-rc1] Compile fix for 2.6.18-rc1 on Ubuntu Edgy (-fstack-protector) Niels Kristian Bech Jensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®