check EC public key isn't point at infinity
[openssl.git] / Configure
index 98e52c1543d1c5897b80078e3dac48474fc944da..429ab2e5eb6ebcf757ee1d16347e93578da315f5 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;