Commit | Line | Data |
---|---|---|
6b09c160 YST |
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); | |
5fe05975 | 8 | $VERSION = '0.280209'; |
6b09c160 YST |
9 | @ISA = qw(ExtUtils::CBuilder::Platform::Unix); |
10 | ||
506098d4 DG |
11 | # TODO: If a specific exe_file name is requested, if the exe created |
12 | # doesn't have that name, we might want to rename it. Apparently asking | |
13 | # for an exe of "foo" might result in "foo.exe". Alternatively, we should | |
14 | # make sure the return value is correctly "foo.exe". | |
15 | # C.f http://rt.cpan.org/Public/Bug/Display.html?id=41003 | |
6b09c160 YST |
16 | sub link_executable { |
17 | my $self = shift; | |
6b09c160 YST |
18 | return $self->SUPER::link_executable(@_); |
19 | } | |
20 | ||
21 | sub link { | |
22 | my ($self, %args) = @_; | |
673223b5 DM |
23 | |
24 | my $lib = $self->{config}{useshrplib} ? 'libperl.dll.a' : 'libperl.a'; | |
6b09c160 | 25 | $args{extra_linker_flags} = [ |
673223b5 | 26 | File::Spec->catfile($self->perl_inc(), $lib), |
6b09c160 YST |
27 | $self->split_like_shell($args{extra_linker_flags}) |
28 | ]; | |
29 | ||
30 | return $self->SUPER::link(%args); | |
31 | } | |
32 | ||
33 | 1; |