diff options
author | Richard Levitte <levitte@openssl.org> | 2016-02-05 15:14:45 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-02-11 16:50:01 +0100 |
commit | 68ab559a50e1819fa441183b81e4523ed1d949e7 (patch) | |
tree | 5ec4a8654166171452ccab6cb30d99d522a86788 /Configure | |
parent | e737d7b197e153775735f700cd6c31cb55d803de (diff) |
Modernise the mingw cflags and ldflags
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -870,10 +870,10 @@ push @{$config{defines}}, map { (my $x = $_) =~ s/^OPENSSL_NO_/OPENSSL_EXPERIMENTAL_/; $x } @{$config{openssl_experimental_defines}}; -if ($target =~ /^mingw/ && `$target{cc} --target-help 2>&1` !~ m/-mno-cygwin/m) +if ($target =~ /^mingw/ && `$target{cc} --target-help 2>&1` =~ m/-mno-cygwin/m) { - $config{cflags} =~ s/-mno-cygwin\s*//; - $target{shared_ldflag} =~ s/-mno-cygwin\s*//; + $config{cflags} .= " -mno-cygwin"; + $target{shared_ldflag} .= " -mno-cygwin"; } if ($target =~ /linux.*-mips/ && !$no_asm && $user_cflags !~ /-m(ips|arch=)/) { |