Initial Commit
This commit is contained in:
31
database/perl/lib/ExtUtils/CBuilder/Platform/aix.pm
Normal file
31
database/perl/lib/ExtUtils/CBuilder/Platform/aix.pm
Normal file
@@ -0,0 +1,31 @@
|
||||
package ExtUtils::CBuilder::Platform::aix;
|
||||
|
||||
use warnings;
|
||||
use strict;
|
||||
use ExtUtils::CBuilder::Platform::Unix;
|
||||
use File::Spec;
|
||||
|
||||
our $VERSION = '0.280235'; # VERSION
|
||||
our @ISA = qw(ExtUtils::CBuilder::Platform::Unix);
|
||||
|
||||
sub need_prelink { 1 }
|
||||
|
||||
sub link {
|
||||
my ($self, %args) = @_;
|
||||
my $cf = $self->{config};
|
||||
|
||||
(my $baseext = $args{module_name}) =~ s/.*:://;
|
||||
my $perl_inc = $self->perl_inc();
|
||||
|
||||
# Massage some very naughty bits in %Config
|
||||
local $cf->{lddlflags} = $cf->{lddlflags};
|
||||
for ($cf->{lddlflags}) {
|
||||
s/\Q$(BASEEXT)\E/$baseext/;
|
||||
s/\Q$(PERL_INC)\E/$perl_inc/;
|
||||
}
|
||||
|
||||
return $self->SUPER::link(%args);
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user