lib/ExtUtils/MM_OS390.pm

filter: Statementstmt 46.6% 14 / 30 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 40.9% 18 / 44 CC 5 SCAR 29.5
CC
5
Cov
37%
xs_make_dynamic_lib
30.0
BEGIN
1.0
BEGIN
1.0
CRAP 19.1
« lib/ExtUtils/MM_Cygwin.pm ↑ Summary lib/ExtUtils/MM_BeOS.pm »
1 package ExtUtils::MM_OS390;
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_OS390 - OS390 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 OS390.
25  
26 Unless otherwise stated it works just like ExtUtils::MM_Unix.
27  
28 =head2 Overriden methods
29  
30 =over
31  
32 =item xs_make_dynamic_lib
33  
34 Defines the recipes for the C<dynamic_lib> section.
35  
36 =cut
37  
38 0 ▶sub xs_make_dynamic_lib {
Subroutine xs_make_dynamic_lib: not called CC=5 SCAR=34.0
Pod documented
39 0 my ($self, $attribs, $object, $to, $todir, $ldfrom, $exportlist, $dlsyms) = @_;
40 0 ▶ $exportlist = '' if $exportlist ne '$(EXPORT_LIST)';
Branch: 1 branch
BranchTrueFalseTotal
if $exportlist ne "\$(EXPORT_LIST)" 0 0 0
41 0 my $armaybe = $self->_xs_armaybe($attribs);
42 0 ▶ my @m = sprintf '%s : %s $(MYEXTLIB) %s$(DFSEP).exists %s $(PERL_ARCHIVEDEP) $(PERL_ARCHIVE_AFTER) $(INST_DYNAMIC_DEP) %s'."\n", $to, $object, $todir, $exportlist, ($dlsyms || '');
Condition0%0/2
$dlsyms || ''
l!l
00
MC/DC0%0/1
$dlsyms || ''
$dlsyms
Truth table0%0/2
A
A= $dlsyms
Aresult
11
00
43 0 my $dlsyms_arg = $self->xs_dlsyms_arg($dlsyms);
44 0 ▶ if ($armaybe ne ':'){
Branch: 1 branch
BranchTrueFalseTotal
if ($armaybe ne ":") 0 0 0
45 0 $ldfrom = 'tmp$(LIB_EXT)';
46 0 push(@m," \$(ARMAYBE) cr $ldfrom $object\n");
47 0 push(@m," \$(RANLIB) $ldfrom\n");
48 }
49  
50 # For example in AIX the shared objects/libraries from previous builds
51 # linger quite a while in the shared dynalinker cache even when nobody
52 # is using them. This is painful if one for instance tries to restart
53 # a failed build because the link command will fail unnecessarily 'cos
54 # the shared object/library is 'busy'.
55 0 push(@m," \$(RM_F) \$\@\n");
56  
57 0 my $libs = '$(LDLOADLIBS)';
58  
59 0 my $ld_run_path_shell = "";
60 0 ▶ if ($self->{LD_RUN_PATH} ne "") {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"LD_RUN_PATH"} ne "") 0 0 0
61 0 $ld_run_path_shell = 'LD_RUN_PATH="$(LD_RUN_PATH)" ';
62 }
63  
64 0 push @m, sprintf <<'MAKE', $ld_run_path_shell, $self->xs_obj_opt('$@'), $dlsyms_arg, $ldfrom, $libs, $exportlist;
65 %s$(LD) %s $(LDDLFLAGS) %s $(OTHERLDFLAGS) %s $(MYEXTLIB) \
66 $(PERL_ARCHIVE) %s $(PERL_ARCHIVE_AFTER) %s \
67 $(INST_DYNAMIC_FIX)
68 $(CHMOD) $(PERM_RWX) $@
69 MAKE
70 0 join '', @m;
71 }
72  
73 1 1;
74  
75 =back
76  
77 =head1 AUTHOR
78  
79 Michael G Schwern <schwern@pobox.com> with code from ExtUtils::MM_Unix
80  
81 =head1 SEE ALSO
82  
83 L<ExtUtils::MakeMaker>
84  
85 =cut
86 __END__
« lib/ExtUtils/MM_Cygwin.pm ↑ Summary lib/ExtUtils/MM_BeOS.pm »