Ticket #9603: 9603-move-from-CFLAGS-to-CC.patch

File 9603-move-from-CFLAGS-to-CC.patch, 1.6 KB (added by drkirkby, 12 years ago)

Change the place where the flag for 64-bit builds is inserted from CFLAGS to CC.

  • SPKG.txt

    # HG changeset patch
    # User David Kirkby <david.kirkby@onetel.net>
    # Date 1283097846 -3600
    # Node ID dcc15783035f03e760c05e03528b7a9d299e057f
    # Parent  db6e4a8c74d8bb6846d79269dccfdf1f44958e22
    #9718 Set the compiler flag for building 64-bit binaries in CC not CFLAGS
    
    diff -r db6e4a8c74d8 -r dcc15783035f SPKG.txt
    a b  
    2323 
    2424== Changelog ==
    2525 
    26 === iconv-1.13.1.p3 (David Kirkby, August 10th, 2010) ===
     26=== iconv-1.13.1.p3 (David Kirkby, August 29th, 2010) ===
    2727 * Use '$MAKE' instead of 'make' in spkg-install and spkg-check
    2828   to enable parallel builds.
     29 * used CC="$CC $CFLAG64" instead of adding $CLFAG64 to
     30   CFLAGS. The former cause problems on Solaris 10 x86
     31   and an early version of OpenSolaris on x86. It was never
     32   a problem on a recent OpenSolaris or Solaris 10 on SPARC.
    2933 * Change the format of the tests in spkg-install and
    30    spkg-check to be a little clearer.
     34   spkg-check to be a little clearer. See #9718 for a discussion of this.
    3135 * Add a few extra comments.
    3236 * Removed code to remove old files, to avoid causing any confusion.
    3337 * Quoted "$SAGE_LOCAL" where this had been omitted before
  • spkg-install

    diff -r db6e4a8c74d8 -r dcc15783035f spkg-install
    a b  
    2626
    2727   # If the environment variable SAGE64="yes", then build a 64-bit version.
    2828   if [ "x$SAGE64" = xyes ]; then
    29       CFLAGS="$CFLAGS $CFLAG64"
    30       export CFLAGS
     29      CC="$CC $CFLAG64"
     30      export CC
    3131      echo "Building a 64-bit version of iconv"
    3232   fi
    3333