From: Andy Polyakov Date: Tue, 30 Nov 2010 22:19:26 +0000 (+0000) Subject: Configure: make -mno-cygwin optional on mingw platforms [from HEAD]. X-Git-Tag: OpenSSL_1_0_0c~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=077527f19e7f32cb671dbfedc019df66bed56b7c;p=oweals%2Fopenssl.git Configure: make -mno-cygwin optional on mingw platforms [from HEAD]. PR: 2381 --- diff --git a/Configure b/Configure index 98e52c1543..429ab2e5eb 100755 --- 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;