Ticket #9775: trac_9775_spkg-lcalc_cygwin_dll.patch

File trac_9775_spkg-lcalc_cygwin_dll.patch, 1.5 KB (added by mpatel, 12 years ago)

SPKG patch of Mike's changes.

  • SPKG.txt

    # HG changeset patch
    # User Mike Hansen <mhansen@gmail.com>
    # Date 1282416032 25200
    # Node ID 3416367e90ef025b806eaf06405b8fae20186a29
    # Parent  a327c8a4f6f258b344e9777e9cdbc02f9fe70410
    #9775: lcalc should make a .dll file on Cygwin instead of .so file
    
    diff --git a/SPKG.txt b/SPKG.txt
    a b version 1.23, which I removed. (David Ki 
    2626
    2727Michael Rubinstein <mrubinst@uwaterloo.ca>
    2828
     29=== lcalc-1.23.p2 (Mike Hansen, August 21, 2010) ===
     30 * Update to work on Cygwin.
     31 * #9775: lcalc should make a .dll file on Cygwin instead of .so file
     32
    2933=== lcalc-1.23.p2 (John Cremona, August 13 2010 following Jeroen Demeyer, July 24, 2010)  ===
    3034 * Upgrade to PARI/GP 2.4.3 (#9343 and #9592).
    3135 * Removed some code from spkg-install made redundant when upgrading to 1.23
  • spkg-install

    diff --git a/spkg-install b/spkg-install
    a b success() { 
    186186    set -e
    187187}
    188188
    189 
    190 # disable Cygwin build for now
    191 if [ "$UNAME" = "CYGWIN" ]; then
    192 #    cp ../../patches/Lcommandline_elliptic.cc .
    193     echo "Sorry, the lcalc build is currently broken"
    194     echo 1
    195 fi
    196 
    197 
    198189export DEFINES=""
    199190
    200191# Copy sage specific modifications and build
    if [ $UNAME = "Darwin" ]; then 
    219210    fi
    220211fi #End of Mac OS X 10.4 specific instructions
    221212
    222 cp libLfunction.so $SAGE_LOCAL/lib/
    223213
    224 
     214if [ $UNAME = "CYGWIN" ]; then
     215    cp libLfunction.so $SAGE_LOCAL/lib/libLfunction.dll
     216else
     217    cp libLfunction.so $SAGE_LOCAL/lib/
     218fi
    225219
    226220echo "Now copying over lcalc library header files"
    227221if `test -d $SAGE_LOCAL/include/lcalc`; then