ExtUtils::Miniperl - write the C code for miniperlmain.c and perlmain.c
use ExtUtils::Miniperl; writemain(@directories); # or writemain($fh, @directories); # or writemain(\$filename, @directories);
Perl Programmers Reference Guide ExtUtils::Miniperl(3)
NAME
ExtUtils::Miniperl - write the C code for miniperlmain.c and perlmain.c
SYNOPSIS
use ExtUtils::Miniperl;
writemain(@directories);
# or
writemain($fh, @directories);
# or
writemain(\$filename, @directories);
DESCRIPTION
"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 miniperlmain.c
or perlmain.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
perlmain.c) or from regen/miniperlmain.pl (to build miniperlmain.c).
So under normal circumstances you won't have to deal with this module
directly.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+-----------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+-----------------------+
|Availability | runtime/perl-532 |
+---------------+-----------------------+
|Stability | Pass-through volatile |
+---------------+-----------------------+
SEE ALSO
ExtUtils::MakeMaker
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from
http://www.cpan.org/src/5.0/perl-5.32.0.tar.gz.
Further information about this software can be found on the open source
community website at https://www.perl.org/.
perl v5.32.0 2020-06-14 ExtUtils::Miniperl(3)