From: Andy Polyakov Date: Tue, 30 Nov 2010 22:18:02 +0000 (+0000) Subject: Configure: make -mno-cygwin optional on mingw platforms. X-Git-Tag: OpenSSL-fips-2_0-rc1~906 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cbecd29a2702cd24d5601e188f675fe8029bbfe6;p=oweals%2Fopenssl.git Configure: make -mno-cygwin optional on mingw platforms. PR: 2381 --- diff --git a/Configure b/Configure index e2efb5b864..b638a0bd98 100755 --- a/Configure +++ b/Configure @@ -1131,6 +1131,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;