Ticket #12173: powerpcg5.diff

File powerpcg5.diff, 1.2 KB (added by jpflori, 9 years ago)

PowerPC G5 spkg diff, review only.

  • SPKG.txt

    diff --git a/SPKG.txt b/SPKG.txt
    a b  
    3030
    3131 * dylib.patch: patch configure so that the shared library is called
    3232   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.
    3335
    3436== Changelog ==
    3537
  • new file patches/powerpcg5.patch

    diff --git a/patches/powerpcg5.patch b/patches/powerpcg5.patch
    new file mode 100644
    - +  
     1diff -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.