Correct URL for mingw runtime sources.
[platform/upstream/glib.git] / build-dll
index ff41e11..1f5c381 100644 (file)
--- a/build-dll
+++ b/build-dll
@@ -3,7 +3,10 @@
 # Temporary hack until building dlls or executables with exported
 # entry points is easier with gcc -mno-cygwin.
 
-#LD=ld
+# This is usable with cygwin b20.1 and egcs-2.91.66 19990314
+# (egcs-1.1.2 release) as distributed by Mumit Khan. For other combinations,
+# no idea.
+
 GCC=gcc
 DLLTOOL=dlltool
 AS=as
@@ -26,11 +29,11 @@ for F in $ldargs; do
     esac
 done
 
-$GCC -s -mdll -mno-cygwin -Wl,--base-file,$library.base -o $dllfile $ldargs
+$GCC -s -mdll -mno-cygwin -Wl,--base-file,$library.base -o $dllfile $ldargs &&
 $DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --output-exp $library.exp $objs &&
-$GCC -s -mdll -mno-cygwin -Wl,--base-file,$library.base,$library.exp -o $dllfile $ldargs
+$GCC -s -mdll -mno-cygwin -Wl,--base-file,$library.base,$library.exp -o $dllfile $ldargs &&
 $DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --output-exp $library.exp $objs &&
-$GCC -mdll -mno-cygwin -Wl,$library.exp -o $dllfile $ldargs
+$GCC -mdll -mno-cygwin -Wl,$library.exp -o $dllfile $ldargs &&
 $DLLTOOL --as=$AS --dllname $dllfile $defswitch --output-lib lib$libname.a $objs
 
 rm $library.base $library.exp 2>/dev/null