3 # Temporary hack until building dlls with gcc -mno-cygwin is easier
15 [ -n "$def" -a "$def" != '-' ] && defswitch="--def $def"
18 [ $version != '-' ] && libname=$library-$version
23 *.o) objs="$objs $F";;
27 $LD -s --base-file $library.base --dll -o $dllfile $ldargs -e _DllMain@12 -lmingw32
28 $DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --output-exp $library.exp $objs
29 $LD -s --base-file $library.base $library.exp --dll -o $dllfile $ldargs -e _DllMain@12 -lmingw32
30 $DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --output-exp $library.exp $objs
31 $LD $library.exp --dll -o $dllfile $ldargs -e _DllMain@12 -lmingw32
32 $DLLTOOL --as=$AS --dllname $dllfile $defswitch --output-lib lib$libname.a $objs
33 rm $library.base $library.exp