lib/ExtUtils/MM_AIX.pm

filter: Statementstmt 51.8% 14 / 27 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 42.8% 3 / 7 Podpod 100% 4 / 4 totaltotal 44.6% 21 / 47 CC 4 SCAR 14.1
CC
4
Cov
41%
dlsyms
6.0
xs_dlsyms_arg
6.0
init_others
6.0
CRAP 4.1
« lib/ExtUtils/Command.pm ↑ Summary lib/ExtUtils/MM.pm »
1 package ExtUtils::MM_AIX;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 our $VERSION = '7.78';
6 1 $VERSION =~ tr/_//d;
7  
8 1 ▶use ExtUtils::MakeMaker::Config;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 require ExtUtils::MM_Unix;
10 1 our @ISA = qw(ExtUtils::MM_Unix);
11  
12 =head1 NAME
13  
14 ExtUtils::MM_AIX - AIX specific subclass of ExtUtils::MM_Unix
15  
16 =head1 SYNOPSIS
17  
18 Don't use this module directly.
19 Use ExtUtils::MM and let it choose.
20  
21 =head1 DESCRIPTION
22  
23 This is a subclass of L<ExtUtils::MM_Unix> which contains functionality for
24 AIX.
25  
26 Unless otherwise stated it works just like ExtUtils::MM_Unix.
27  
28 =head2 Overridden methods
29  
30 =head3 dlsyms
31  
32 Define DL_FUNCS and DL_VARS and write the *.exp files.
33  
34 =cut
35  
36 0 ▶sub dlsyms {
Subroutine dlsyms: not called CC=2 SCAR=17.9
Pod documented
37 0 my($self,%attribs) = @_;
38 0 ▶ return '' unless $self->needs_linking;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->needs_linking 0 0 0
39 0 join "\n", $self->xs_dlsyms_iterator(\%attribs);
40 }
41  
42 =head3 xs_dlsyms_ext
43  
44 On AIX, is C<.exp>.
45  
46 =cut
47  
48 0 ▶sub xs_dlsyms_ext {
Subroutine xs_dlsyms_ext: not called CC=1 SCAR=6.9
Pod documented
49 0 '.exp';
50 }
51  
52 0 ▶sub xs_dlsyms_arg {
Subroutine xs_dlsyms_arg: not called CC=2 SCAR=17.9
Pod documented
53 0 my($self, $file) = @_;
54 0 my $arg = qq{-bE:${file}};
55 0 ▶ $arg = '-Wl,'.$arg if $Config{lddlflags} =~ /-Wl,-bE:/;
Branch: 1 branch
BranchTrueFalseTotal
if $ExtUtils::MM_AIX::Config{"lddlflags"} =~ /-Wl,-bE:/ 0 0 0
56 0 return $arg;
57 }
58  
59 0 ▶sub init_others {
Subroutine init_others: not called CC=2 SCAR=17.9
Pod documented
60 0 my $self = shift;
61 0 $self->SUPER::init_others;
62 # perl "hints" add -bE:$(BASEEXT).exp to LDDLFLAGS. strip that out
63 # so right value can be added by xs_make_dynamic_lib to work for XSMULTI
64 0 ▶ $self->{LDDLFLAGS} ||= $Config{lddlflags};
Condition0%0/3
$self->{"LDDLFLAGS"} ||= $ExtUtils::MM_AIX::Config{"lddlflags"}
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{"LDDLFLAGS"} ||= $ExtUtils::MM_AIX::Config{"lddlflags"}
$self->{"LDDLFLAGS"} $ExtUtils::MM_AIX::Config{"lddlflags"}
Truth table0%0/3
A ||= B
A= $self->{"LDDLFLAGS"}B= $ExtUtils::MM_AIX::Config{"lddlflags"}
ABresult
1X1
011
000
65 0 $self->{LDDLFLAGS} =~ s#(\s*)\S*\Q$(BASEEXT)\E\S*(\s*)#$1$2#;
66 0 return;
67 }
68  
69 =head1 AUTHOR
70  
71 Michael G Schwern <schwern@pobox.com> with code from ExtUtils::MM_Unix
72  
73 =head1 SEE ALSO
74  
75 L<ExtUtils::MakeMaker>
76  
77 =cut
78  
79  
80 1 1;
« lib/ExtUtils/Command.pm ↑ Summary lib/ExtUtils/MM.pm »