summaryrefslogtreecommitdiff
path: root/debian/patches/arch_without_mregparm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/arch_without_mregparm.patch')
-rw-r--r--debian/patches/arch_without_mregparm.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/arch_without_mregparm.patch b/debian/patches/arch_without_mregparm.patch
new file mode 100644
index 0000000..2efe8e0
--- /dev/null
+++ b/debian/patches/arch_without_mregparm.patch
@@ -0,0 +1,24 @@
+Index: oss4-4.2-build2004/setup/srcconf_linux.inc
+===================================================================
+--- oss4-4.2-build2004.orig/setup/srcconf_linux.inc 2011-06-14 11:33:23.000000000 -0500
++++ oss4-4.2-build2004/setup/srcconf_linux.inc 2011-06-14 11:33:24.000000000 -0500
+@@ -53,7 +53,9 @@
+ fprintf (f,
+ "CFLAGS += -O3 -fno-common -mcmodel=kernel -mno-red-zone -fno-asynchronous-unwind-tables -ffreestanding%s\n", fnsp);
+ # else
+-# ifndef __arm__
++# if defined(__arm__) || defined(__sh__) || defined(__mips__) || defined(__sparc__) || defined(__ia64__) || defined(__alpha__) || defined(__s390__) || defined(__powerpc__) || defined(__hppa__)
++ fprintf (f, "CFLAGS += -O3 -fno-common -ffreestanding%s\n", fnsp);
++# else
+ if (getenv ("NO_REGPARM") == NULL)
+ {
+ fprintf (f,
+@@ -63,8 +65,6 @@
+ {
+ fprintf (f, "CFLAGS += -O3 -fno-common -ffreestanding -DNO_REGPARM%s\n", fnsp);
+ }
+-# else
+- fprintf (f, "CFLAGS += -O3 -fno-common -ffreestanding%s\n", fnsp);
+ # endif
+ # endif
+ }