1ExtUtils::Miniperl(3pm)Perl Programmers Reference GuideExtUtils::Miniperl(3pm)
2
3
4

NAME

6       ExtUtils::Miniperl - write the C code for miniperlmain.c and perlmain.c
7

SYNOPSIS

9           use ExtUtils::Miniperl;
10           writemain(@directories);
11           # or
12           writemain($fh, @directories);
13           # or
14           writemain(\$filename, @directories);
15

DESCRIPTION

17       "writemain()" takes an argument list of zero or more directories
18       containing archive libraries that relate to perl modules and should be
19       linked into a new perl binary. It writes a corresponding miniperlmain.c
20       or perlmain.c file that is a plain C file containing all the bootstrap
21       code to make the modules associated with the libraries available from
22       within perl.  If the first argument to "writemain()" is a reference to
23       a scalar it is used as the filename to open for output. Any other
24       reference is used as the filehandle to write to. Otherwise output
25       defaults to "STDOUT".
26
27       The typical usage is from within perl's own Makefile (to build
28       perlmain.c) or from regen/miniperlmain.pl (to build miniperlmain.c).
29       So under normal circumstances you won't have to deal with this module
30       directly.
31

SEE ALSO

33       ExtUtils::MakeMaker
34
35
36
37perl v5.36.0                      2022-08-30           ExtUtils::Miniperl(3pm)
Impressum