Configure: make -mno-cygwin optional on mingw platforms [from HEAD].
PR: 2381
This commit is contained in:
parent
00daa2e6c6
commit
077527f19e
@ -1111,6 +1111,12 @@ my ($prelflags,$postlflags)=split('%',$lflags);
|
|||||||
if (defined($postlflags)) { $lflags=$postlflags; }
|
if (defined($postlflags)) { $lflags=$postlflags; }
|
||||||
else { $lflags=$prelflags; undef $prelflags; }
|
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_shared_warn=0;
|
||||||
my $no_user_cflags=0;
|
my $no_user_cflags=0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user