Ticket #10979: Fix-for-GNU-patch-on-AIX.patch

File Fix-for-GNU-patch-on-AIX.patch, 1.4 KB (added by drkirkby, 9 years ago)

Mercurial patch - only for review purposes - the changes are committed to the respositroy on the .spkg

  • SPKG.txt

    # HG changeset patch
    # User David Kirkby <david.kirkby@onetel.net>
    # Date 1300836502 0
    # Node ID 5123ffe9c96b650e5a3f66e80c2436a9fe9979f9
    # Parent  a8657372edc64a90bde7eb5e07d4b8fe6a257116
    #10979 GNU patch fails to build on AIX 5.3
    
    diff -r a8657372edc6 -r 5123ffe9c96b SPKG.txt
    a b  
    4545
    4646== Changelog ==
    4747
     48=== patch-2.5.9.p0 (David Kirkby, 22nd March 2011)  ===
     49 * #10979 Disable debugging information on AIX, by adding -g0
     50  to CFLAGS otherwise there are link errors with GNU patch and
     51  many other programs. See these threads.
     52  http://www.ibm.com/developerworks/forums/thread.jspa?threadID=348558
     53  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46072
     54
    4855=== patch-2.5.9 (David Kirkby, Jeroen Demeyer, 16th november 2010)  ===
    4956 * Initial version.
    5057
  • spkg-install

    diff -r a8657372edc6 -r 5123ffe9c96b spkg-install
    a b  
    2727   export LDFLAGS
    2828fi
    2929
     30# Disable debugging information on AIX, as this causes link errors. See:
     31# http://www.ibm.com/developerworks/forums/thread.jspa?threadID=348558
     32# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46072
     33
     34if [ "x$UNAME" = xAIX ] ; then
     35   CFLAGS="$CFLAGS -g0"
     36   export CFLAGS
     37fi
     38
    3039cd src
    3140
    3241./configure --prefix="$SAGE_LOCAL"