Ticket #12433: zn_poly-0.9.p6.patch

File zn_poly-0.9.p6.patch, 1.7 KB (added by ohanar, 10 years ago)

for review purposes

  • SPKG.txt

    # HG changeset patch
    # User R. Andrew Ohana <andrew.ohana@gmail.com>
    # Date 1328378612 28800
    # Node ID 40715bfe3e31624feb49ab44e843d827c455c3c4
    # Parent  8850e25392c9440aba09868a75d1effd22d1abee
    make spkg respect global CC flag
    
    diff --git a/SPKG.txt b/SPKG.txt
    a b  
    2929
    3030== Changelog ==
    3131
     32=== zn_poly-0.9.p6 (R. Andrew Ohana, February 4th, 2012) ===
     33 * make spkg respect global CC flag
    3234
    3335=== zn_poly-0.9.p5 (David Kirkby, July 14th, 2010) ===
    3436 * #9358 Ensure that spkg-install can handle the case
  • spkg-install

    diff --git a/spkg-install b/spkg-install
    a b  
    5151            --prefix="$SAGE_LOCAL" --cflags="$CFLAGS" --ldflags="$LDFLAGS"
    5252
    5353# optionally run tuning program, only takes 1 minute or so
    54 make tune
     54$MAKE tune CC=$CC
    5555if [ $? -ne 0 ]; then
    5656        echo "Error building zn_poly tuning program."
    5757        exit 1
     
    6363        exit 1
    6464fi
    6565
    66 make
     66$MAKE CC=$CC
    6767if [ $? -ne 0 ]; then
    6868        echo "Error building zn_poly."
    6969        exit 1
    7070fi
    7171
    7272# run test suite (quick version)
    73 make check
     73$MAKE check CC=$CC
    7474
    7575if [ $? -ne 0 ]; then
    7676   echo "Error running zn_poly's quick test suite (make check)."
     
    8686
    8787# UNIX
    8888if [ $UNAME != "Darwin" ]; then
    89     $MAKE libzn_poly.so
     89    $MAKE libzn_poly.so CC=$CC
    9090    if [ $? -ne 0 ]; then
    9191        echo "Error building zn_poly shared library."
    9292        exit 1
     
    104104# OS X
    105105if [ $UNAME = "Darwin" ]; then
    106106    if [ "$SAGE64" = "yes" ]; then
    107       $MAKE libzn_poly.dylib64
     107      $MAKE libzn_poly.dylib64 CC=$CC
    108108    else
    109       $MAKE libzn_poly.dylib
     109      $MAKE libzn_poly.dylib CC=$CC
    110110    fi
    111111    if [ ! -f libzn_poly.dylib ]; then
    112112        echo "Failed to build zn_poly dylib."