1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 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
}
|