Changeset 946 for trunk/compile_f2c


Ignore:
Timestamp:
Feb 25, 2008 9:32:34 AM (13 years ago)
Author:
andreasw
Message:

added a few things for building of loadable libraries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/compile_f2c/compile_f2c

    r332 r946  
    4747
    4848options=
     49makedll=
     50linkflags=
    4951incs=
    5052fsrc=
     
    7476        f2clib=
    7577        mainobj=
     78        ;;
     79      -shared)
     80        makedll=yes
     81        linkflags="$linkflags -dll"
     82        ;;
     83      -def:*)
     84        linkflags="$linkflags $arg"
    7685        ;;
    7786      -*)
     
    114123fi
    115124
    116 echo $F2C_CC $options $cincs $csrc $objs $cout $mainobj $f2clib
     125if test x$makedll = xyes; then
     126  echo $F2C_CC $options $cincs $csrc $objs $cout $f2clib -link $linkflags
    117127
    118 $F2C_CC $options $cincs $csrc $objs $cout $mainobj $f2clib
     128  $F2C_CC $options $cincs $csrc $objs $cout $f2clib -link $linkflags
     129else
     130  echo $F2C_CC $options $cincs $csrc $objs $cout $mainobj $f2clib
     131
     132  $F2C_CC $options $cincs $csrc $objs $cout $mainobj $f2clib
     133fi
    119134cl_status=$?
    120135
Note: See TracChangeset for help on using the changeset viewer.