Ticket #15433: gcc-4.7.3.p1.diff

File gcc-4.7.3.p1.diff, 1.2 KB (added by ohanar, 4 years ago)

for review purposes

  • SPKG.txt

    # HG changeset patch
    # User R. Andrew Ohana <andrew.ohana@gmail.com>
    # Date 1385532160 28800
    #      Tue Nov 26 22:02:40 2013 -0800
    # Node ID e41b5946790b5b658f565e62c671047b908f3629
    # Parent  f86be31649602e2d39accfe37020491f497a4cd6
    Trac 15433: work around for incompatibility between g++ and an OS X header
    
    diff --git a/SPKG.txt b/SPKG.txt
    a b  
    3030
    3131== Changelog ==
    3232
     33=== gcc-4.7.3.p1 (R. Andrew Ohana, 26 November 2013) ===
     34 * Trac #15433: work around for incompatiblity between g++ and
     35   an OS X 10.9 header
     36
    3337=== gcc-4.7.3.p0 (Jeroen Demeyer, 11 April 2013) ===
    3438 * Trac #14441: upgrade to version 4.7.3.
    3539
  • spkg-install

    diff --git a/spkg-install b/spkg-install
    a b  
    5050    export LD=ld
    5151fi
    5252
     53# On OS X 10.9, g++ and the cdefs.h header are currently incompatible
     54# Temporary workaround posted at http://trac.macports.org/ticket/41033
     55if { uname -sr | grep 'Darwin 13\.' ;} &>/dev/null; then
     56    mkdir -p "$SAGE_LOCAL/include/sys"
     57    sed 's+defined(__GNUC_STDC_INLINE__)+& \&\& !defined(__cplusplus)+' /usr/include/sys/cdefs.h > "$SAGE_LOCAL/include/sys/cdefs.h"
     58fi
    5359
    5460if [ "$SAGE_CHECK" = yes ]; then
    5561    # Enable internal checks in GCC.  These checks do not affect the