Ticket #8089: disable-assembly-code-on-OpenSolaris.patch

File disable-assembly-code-on-OpenSolaris.patch, 1.5 KB (added by drkirkby, 12 years ago)

Mercurial patch to disable assembly code on OpenSolaris x64

  • SPKG.txt

    # HG changeset patch
    # User David Kirkby <david.kirkby@onetel.net>
    # Date 1275265635 -3600
    # Node ID ddaf03893942bdfe6305edbbd6772efe9cb45ebe
    # Parent  e8eac19d18ce2fcf24381b540633e375da94b085
    #8089 Disable assembly code with --with-dffi=no option to configure script on OpenSolaris
    
    diff -r e8eac19d18ce -r ddaf03893942 SPKG.txt
    a b  
    4545
    4646== Changelog ==
    4747
     48=== ecl-10.2.1.p0 (David Kirkby, 31st May 2010) ===
     49  * #8089 Add the configure option '--with-dffi=no' on
     50   OpenSolaris on the x86 processor. This disables assembly code.
     51
    4852=== ecl-10.2.1 (William Stein, 14 February 2010) ===
    4953  * Upgrade to latest stable upstream release.
    5054
  • spkg-install

    diff -r e8eac19d18ce -r ddaf03893942 spkg-install
    a b  
    158158
    159159cd src
    160160
    161 ./configure --prefix=$SAGE_LOCAL
     161if [ "x`uname -rsm`" = "xSunOS 5.11 i86pc" ] && [ "x$SAGE64" = xyes ]  ; then
     162   # Need to add --with-dffi=no to disable assembly code on OpenSolaris x64.
     163   # This may be needed for other variants of Solaris, but for now at least
     164   # the option is only given if all the following are true
     165   # 1) OpenSolaris (SunOS 5.11)
     166   # 2) Intel or AMD CPU
     167   # 3) 64-bit build
     168   ./configure --prefix=$SAGE_LOCAL --with-dffi=no
     169else
     170   ./configure --prefix=$SAGE_LOCAL
     171fi
     172
    162173if [ $? -ne 0 ]; then
    163174   echo "Failed to configure ECL ... exiting"
    164175   exit 1