Alt-Devel-CallParser-ButWorking
view release on metacpan or search on metacpan
unless(-f $cc0_h) {
require Devel::CallChecker;
Devel::CallChecker->VERSION(0.001);
my $content = &Devel::CallChecker::callchecker0_h();
$self->add_to_cleanup($cc0_h);
require IO::File;
my $fh = IO::File->new($cc0_h, "w") or die $!;
$fh->printflush($content) or die $!;
$fh->close or die $!;
}
return $self->SUPER::compile_c($file, %args);
}
sub link_c {
no strict "refs";
my($self, $spec) = @_;
my $cb = $self->cbuilder;
my $cbclass = ref($cb);
my $orig_cb_prelink = $cb->can("prelink");
local *{"${cbclass}::prelink"} = sub {
use strict "refs";
my($self, %args) = @_;
\$norm_libfile, \$norm_impfile);
push @cmds, [
$cf->{dlltool} || "dlltool",
"--def", $spec{def_file},
"--output-lib", $norm_impfile,
"--dllname", $spec{basename}.".".$cf->{dlext},
$spec{output},
] if $spec{output} eq $norm_libfile;
return @cmds;
} if $cb->isa("ExtUtils::CBuilder::Platform::Windows::GCC");
$self->SUPER::link_c($spec);
if($^O eq "MSWin32") {
die "failed to generate import library"
unless -e $impfile;
$self->add_to_cleanup($impfile);
}
}
})->new(
module_name => "Alt::Devel::CallParser::ButWorking",
license => "perl",
configure_requires => {
( run in 0.472 second using v1.01-cache-2.11-cpan-49f99fa48dc )