B-C
view release on metacpan or search on metacpan
script/buildcc.PL view on Meta::CPAN
vprint 0, "SYSTEM TIMEOUT (infinite loop?)\n";
}
close(FD);
return($text);
}
sub is_win32() { $^O =~ m/^MSWin/ }
sub is_msvc() { is_win32 && $Config{cc} =~ m/^cl/i }
__END__
=head1 NAME
buildcc - build an executable with shared modules from a perl script
=head1 SYNOPSIS
buildcc -o hello hello.pl # pass thru perlcc
buildcc -m app.pl # detects dependencies for app.pl, write them to app.mak,
# and compile all into shared modules and app
buildcc -l -m app.pl # use local ~/.perl5/pcc/ path
buildcc -l=~/pcc -m app.pl # use local ~/pcc/ path
=head1 DESCRIPTION
F<buildcc> is a C<perlcc -m> frontend to detect and maintain perlcc compiled perl
modules as compiled shared libraries.
It creates a F<.mak> file for the compiled script with all dependencies.
C<-l> uses a local path for all compiled shared modules. Otherwise it checks if
F< 'sitearch'/pcc/> is writable and puts/searches the modules there if so.
All other options are passed thru to perlcc verbatim.
=head1 OPTIONS
=over 4
=item -m
Create a .mak for the module depencencies, and create the target.
=item -l [path]
Use the given local path as prefix for the created shared modules.
=back
=cut
# Local Variables:
# mode: cperl
# cperl-indent-level: 4
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4:
!NO!SUBS!
close OUT or die "Can't close $file: $!";
chmod 0755, $file or die "Can't reset permissions for $file: $!\n";
exec("$Config{'eunicefix'} $file") if $Config{'eunicefix'} ne ':';
chdir $origdir;
( run in 0.976 second using v1.01-cache-2.11-cpan-437f7b0c052 )