blib/lib/ExtUtils/CBuilder/Platform/cygwin.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 32 CC 2 SCAR 11.5
CC
2
Cov
0%
link
6.0
link_executable
2.0
BEGIN
2.0
CRAP 3.1
1 package ExtUtils::CBuilder::Platform::cygwin;
2  
3 use strict;
4 use File::Spec;
5 use ExtUtils::CBuilder::Platform::Unix;
6  
7 use vars qw($VERSION @ISA);
8 $VERSION = '0.24_01';
9 @ISA = qw(ExtUtils::CBuilder::Platform::Unix);
10  
11 sub link_executable {
12 my $self = shift;
13 # $Config{ld} is okay. Circumvent the Unix ld=cc override in the superclass.
14 local $self->{config}{cc} = $self->{config}{ld};
15 return $self->SUPER::link_executable(@_);
16 }
17  
18 sub link {
19 my ($self, %args) = @_;
20  
21 my $lib = $self->{config}{useshrplib} ? 'libperl.dll.a' : 'libperl.a';
22 $args{extra_linker_flags} = [
23 File::Spec->catfile($self->perl_inc(), $lib),
24 $self->split_like_shell($args{extra_linker_flags})
25 ];
26  
27 return $self->SUPER::link(%args);
28 }
29  
30 1;