From e62fee8eb3876bb6cb51a6010e618113c6e2f64b Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Tue, 30 Nov 2010 22:18:46 +0000 Subject: [PATCH] Configure: make -mno-cygwin optional on mingw platforms [from HEAD]. PR: 2381 --- Configure | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.40.0