This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Upgrade ExtUtils::CBuilder from version 0.280223 to 0.280224
[perl5.git] / dist / ExtUtils-CBuilder / lib / ExtUtils / CBuilder / Platform / aix.pm
CommitLineData
6b09c160 1package ExtUtils::CBuilder::Platform::aix;
83dcc064
SH
2$ExtUtils::CBuilder::Platform::aix::VERSION = '0.280224';
3use warnings;
6b09c160
YST
4use strict;
5use ExtUtils::CBuilder::Platform::Unix;
6use File::Spec;
7
74d5bfab 8use vars qw(@ISA);
6b09c160
YST
9@ISA = qw(ExtUtils::CBuilder::Platform::Unix);
10
11sub need_prelink { 1 }
12
13sub link {
14 my ($self, %args) = @_;
15 my $cf = $self->{config};
16
17 (my $baseext = $args{module_name}) =~ s/.*:://;
18 my $perl_inc = $self->perl_inc();
19
20 # Massage some very naughty bits in %Config
21 local $cf->{lddlflags} = $cf->{lddlflags};
22 for ($cf->{lddlflags}) {
23 s/\Q$(BASEEXT)\E/$baseext/;
24 s/\Q$(PERL_INC)\E/$perl_inc/;
25 }
26
27 return $self->SUPER::link(%args);
28}
29
30
311;