ExtUtils::Miniperl(3p) Perl Programmers Reference Guide #
ExtUtils::Miniperl(3p) Perl Programmers Reference Guide
NNAAMMEE #
ExtUtils::Miniperl - write the C code for miniperlmain.c and perlmain.c
SSYYNNOOPPSSIISS #
use ExtUtils::Miniperl;
writemain(@directories);
# or
writemain($fh, @directories);
# or
writemain(\$filename, @directories);
DDEESSCCRRIIPPTTIIOONN #
"writemain()" takes an argument list of zero or more directories
containing archive libraries that relate to perl modules and should be
linked into a new perl binary. It writes a corresponding _m_i_n_i_p_e_r_l_m_a_i_n_._c
or _p_e_r_l_m_a_i_n_._c file that is a plain C file containing all the bootstrap
code to make the modules associated with the libraries available from
within perl. If the first argument to "writemain()" is a reference to a
scalar it is used as the filename to open for output. Any other reference
is used as the filehandle to write to. Otherwise output defaults to
“STDOUT”. #
The typical usage is from within perl's own Makefile (to build
_p_e_r_l_m_a_i_n_._c) or from _r_e_g_e_n_/_m_i_n_i_p_e_r_l_m_a_i_n_._p_l (to build miniperlmain.c). So
under normal circumstances you won't have to deal with this module
directly.
SSEEEE AALLSSOO #
ExtUtils::MakeMaker
perl v5.36.3 2023-02-15 ExtUtils::Miniperl(3p)