|
package ExtUtils::MM_OS390; |
|
|
|
use strict; |
|
use warnings; |
|
our $VERSION = '7.62'; |
|
$VERSION =~ tr/_//d; |
|
|
|
use ExtUtils::MakeMaker::Config; |
|
require ExtUtils::MM_Unix; |
|
our @ISA = qw(ExtUtils::MM_Unix); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sub xs_make_dynamic_lib { |
|
my ($self, $attribs, $object, $to, $todir, $ldfrom, $exportlist, $dlsyms) = @_; |
|
$exportlist = '' if $exportlist ne '$(EXPORT_LIST)'; |
|
my $armaybe = $self->_xs_armaybe($attribs); |
|
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 || ''); |
|
my $dlsyms_arg = $self->xs_dlsyms_arg($dlsyms); |
|
if ($armaybe ne ':'){ |
|
$ldfrom = 'tmp$(LIB_EXT)'; |
|
push(@m," \$(ARMAYBE) cr $ldfrom $object\n"); |
|
push(@m," \$(RANLIB) $ldfrom\n"); |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
push(@m," \$(RM_F) \$\@\n"); |
|
|
|
my $libs = '$(LDLOADLIBS)'; |
|
|
|
my $ld_run_path_shell = ""; |
|
if ($self->{LD_RUN_PATH} ne "") { |
|
$ld_run_path_shell = 'LD_RUN_PATH="$(LD_RUN_PATH)" '; |
|
} |
|
|
|
push @m, sprintf <<'MAKE', $ld_run_path_shell, $dlsyms_arg, $self->xs_obj_opt('$@'), $ldfrom, $libs, $exportlist; |
|
%s$(LD) $(LDDLFLAGS) %s $(OTHERLDFLAGS) %s $(MYEXTLIB) %s \ |
|
$(PERL_ARCHIVE) %s $(PERL_ARCHIVE_AFTER) %s \ |
|
$(INST_DYNAMIC_FIX) |
|
$(CHMOD) $(PERM_RWX) $@ |
|
MAKE |
|
join '', @m; |
|
} |
|
|
|
1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__END__ |
|
|