3 # Temporary hack until building dlls or executables with exported
4 # entry points is easier with gcc -mno-cygwin.
17 [ -n "$def" -a "$def" != '-' ] && defswitch="--def $def"
20 [ $version != '-' ] && libname=$library-$version
25 *.o) objs="$objs $F";;
29 $GCC -s -mdll -mno-cygwin -Wl,--base-file,$library.base -o $dllfile $ldargs
30 $DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --output-exp $library.exp $objs &&
31 $GCC -s -mdll -mno-cygwin -Wl,--base-file,$library.base,$library.exp -o $dllfile $ldargs
32 $DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --output-exp $library.exp $objs &&
33 $GCC -mdll -mno-cygwin -Wl,$library.exp -o $dllfile $ldargs
34 $DLLTOOL --as=$AS --dllname $dllfile $defswitch --output-lib lib$libname.a $objs
36 rm $library.base $library.exp 2>/dev/null