]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.suse/ppc-no-LDFLAGS_MODULE.patch
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.suse / ppc-no-LDFLAGS_MODULE.patch
CommitLineData
2cb7cef9
BS
1Subject: arch/powerpc/lib/crtsavres.o is not available when linking external modules
2From: olh@suse.de
3Patch-mainline: never
4
5Maybe it helps.
6
7---
8 arch/powerpc/Makefile | 6 ++++--
9 1 file changed, 4 insertions(+), 2 deletions(-)
10
11--- a/arch/powerpc/Makefile
12+++ b/arch/powerpc/Makefile
13@@ -83,15 +83,17 @@ ifeq ($(GCC_BROKEN_VEC),y)
14 KBUILD_CFLAGS += $(call cc-option,-mcpu=970)
15 else
16 KBUILD_CFLAGS += $(call cc-option,-mcpu=power4)
17+# GCC_BROKEN_VEC
18 endif
19 else
20 KBUILD_CFLAGS += $(call cc-option,-mcpu=power4)
21+# CONFIG_ALTIVEC
22 endif
23 else
24 KBUILD_CFLAGS += $(call cc-option,-mtune=power4)
25+# CONFIG_POWER4_ONLY
26 endif
27-else
28-LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o
29+# CONFIG_PPC64
30 endif
31
32 ifeq ($(CONFIG_TUNE_CELL),y)