Configure: make -mno-cygwin optional on mingw platforms [from HEAD].
authorAndy Polyakov <appro@openssl.org>
Tue, 30 Nov 2010 22:18:46 +0000 (22:18 +0000)
committerAndy Polyakov <appro@openssl.org>
Tue, 30 Nov 2010 22:18:46 +0000 (22:18 +0000)
PR: 2381

Configure

index 98e52c1..429ab2e 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1111,6 +1111,12 @@ my ($prelflags,$postlflags)=split('%',$lflags);
 if (defined($postlflags))      { $lflags=$postlflags;  }
 else                           { $lflags=$prelflags; undef $prelflags; }
 
+if ($target =~ /^mingw/ && `$cc --target-help 2>&1` !~ m/\-mno\-cygwin/m)
+       {
+       $cflags =~ s/\-mno\-cygwin\s*//;
+       $shared_ldflag =~ s/\-mno\-cygwin\s*//;
+       }
+
 my $no_shared_warn=0;
 my $no_user_cflags=0;