This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Cygwin build harmonization, remove cygwin/Makefile.SHs
[perl5.git] / lib / ExtUtils / CBuilder / Platform / cygwin.pm
CommitLineData
6b09c160
YST
1package ExtUtils::CBuilder::Platform::cygwin;
2
3use strict;
4use File::Spec;
5use ExtUtils::CBuilder::Platform::Unix;
6
7use vars qw($VERSION @ISA);
c3fb68a3 8$VERSION = '0.23';
6b09c160
YST
9@ISA = qw(ExtUtils::CBuilder::Platform::Unix);
10
11sub link_executable {
12 my $self = shift;
5f9145a3
RU
13 # $Config{ld} is okay. revert the stupid Unix cc=ld override
14 local $self->{config}{cc} = $self->{config}{ld};
6b09c160
YST
15 return $self->SUPER::link_executable(@_);
16}
17
18sub link {
19 my ($self, %args) = @_;
5f9145a3 20 # libperl.dll.a fails with -Uusedl. -L../CORE -lperl is better
6b09c160 21 $args{extra_linker_flags} = [
5f9145a3 22 '-L'.$self->perl_inc().' -lperl',
6b09c160
YST
23 $self->split_like_shell($args{extra_linker_flags})
24 ];
25
26 return $self->SUPER::link(%args);
27}
28
291;