summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2010-11-30 22:18:46 +0000
committerAndy Polyakov <appro@openssl.org>2010-11-30 22:18:46 +0000
commite62fee8eb3876bb6cb51a6010e618113c6e2f64b (patch)
tree4b2137f0cfe47abb2409611db0587ea62bfb59c4 /Configure
parent5566d49103e34a49e9647da25b0278fdfe01bf5e (diff)
Configure: make -mno-cygwin optional on mingw platforms [from HEAD].
PR: 2381
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure6
1 files changed, 6 insertions, 0 deletions
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;