3 # Temporary hack until building dlls or executables with exported
4 # entry points is easier with gcc -mno-cygwin.
6 # This is usable with cygwin b20.1 and egcs-2.91.66 19990314
7 # (egcs-1.1.2 release) as distributed by Mumit Khan. For other combinations,
20 [ -n "$def" -a "$def" != '-' ] && defswitch="--def $def"
23 [ $version != '-' ] && libname=$library-$version
28 *.o) objs="$objs $F";;
32 $GCC -s -mdll -mno-cygwin -Wl,--base-file,$library.base -o $dllfile $ldargs
33 $DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --output-exp $library.exp $objs &&
34 $GCC -s -mdll -mno-cygwin -Wl,--base-file,$library.base,$library.exp -o $dllfile $ldargs
35 $DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --output-exp $library.exp $objs &&
36 $GCC -mdll -mno-cygwin -Wl,$library.exp -o $dllfile $ldargs
37 $DLLTOOL --as=$AS --dllname $dllfile $defswitch --output-lib lib$libname.a $objs
39 rm $library.base $library.exp 2>/dev/null