diff --git a/SPKG.txt b/SPKG.txt
a
|
b
|
|
30 | 30 | |
31 | 31 | * dylib.patch: patch configure so that the shared library is called |
32 | 32 | libflint.dylib on Darwin. |
| 33 | * powerpcg5.patch: patch configure so that "-m64" (and other potentially |
| 34 | unwanted cflags) is not always used on PowerPC G5. |
33 | 35 | |
34 | 36 | == Changelog == |
35 | 37 | |
diff --git a/patches/powerpcg5.patch b/patches/powerpcg5.patch
new file mode 100644
-
|
+
|
|
| 1 | diff -drNu src.orig/configure src/configure |
| 2 | --- src.orig/configure 2012-11-09 20:42:47.000000000 +0000 |
| 3 | +++ src/configure 2013-05-06 16:09:43.271897633 +0100 |
| 4 | @@ -267,7 +267,8 @@ |
| 5 | elif [ "$KERNEL" = "Darwin" -a "$ARCH" = "ppc" ]; then |
| 6 | FLINT_TUNE=" -funroll-loops" |
| 7 | elif [ "`uname -p`" = "powerpc" ]; then |
| 8 | - FLINT_TUNE="-m64 -mcpu=970 -mtune=970 -mpowerpc64 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16" |
| 9 | + # This should match PowerPC G5 |
| 10 | + FLINT_TUNE="-falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16" |
| 11 | elif [ "$ARCH" = "ia64" ]; then |
| 12 | # -funroll-loops crashes the build on itanium under GCC-4.2.1, as reported by |
| 13 | # Kate Minola. |