Index: mswin32.pl
===================================================================
RCS file: /cvs/public/parrot/config/init/hints/mswin32.pl,v
retrieving revision 1.16
diff -u -b -r1.16 mswin32.pl
--- mswin32.pl	15 Oct 2003 12:06:24 -0000	1.16
+++ mswin32.pl	22 Nov 2003 02:39:52 -0000
@@ -56,6 +56,13 @@
 		# 'link' needs to be link.exe, not cl.exe.
 		# This makes 'link' and 'ld' the same.
 		Configure::Data->set('link', Configure::Data->get('ld'));
+		
+		# We can't use -opt: and -debug together.
+		if (Configure::Data->get('ld_debug') =~ /-debug/) {
+			my $linkflags = Configure::Data->get('linkflags');
+			$linkflags =~ s/-opt:\S+//;
+			Configure::Data->set('linkflags', $linkflags);
+		}
 	    }
 	if( $is_bcc ) {
 		Configure::Data->set(
