@@ -8,7 +8,7 @@ use vars qw($VERSION @ISA @EXPORT);
8
8
9
9
@ISA = qw( Exporter) ;
10
10
@EXPORT = qw( writemain) ;
11
- $VERSION = ' 1.05 ' ;
11
+ $VERSION = ' 1.06 ' ;
12
12
13
13
# blead will run this with miniperl, hence we can't use autodie or File::Temp
14
14
my $temp ;
@@ -36,10 +36,10 @@ sub writemain{
36
36
my (@exts ) = @_ ;
37
37
38
38
printf $fh <<'EOF!HEAD' , xsi_header();
39
- /* miniperlmain.c
39
+ /* miniperlmain.c or perlmain.c - a generated file
40
40
*
41
41
* Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003,
42
- * 2004, 2005, 2006, 2007, by Larry Wall and others
42
+ * 2004, 2005, 2006, 2007, 2016 by Larry Wall and others
43
43
*
44
44
* You may distribute under the terms of either the GNU General Public
45
45
* License or the Artistic License, as specified in the README file.
@@ -56,11 +56,18 @@ sub writemain{
56
56
57
57
/* This file contains the main() function for the perl interpreter.
58
58
* Note that miniperlmain.c contains main() for the 'miniperl' binary,
59
- * while perlmain.c contains main() for the 'perl' binary.
59
+ * while perlmain.c contains main() for the 'perl' binary. The typical
60
+ * difference being that the latter includes Dynaloader.
60
61
*
61
62
* Miniperl is like perl except that it does not support dynamic loading,
62
63
* and in fact is used to build the dynamic modules needed for the 'real'
63
64
* perl executable.
65
+ *
66
+ * The content of the body of this generated file is mostly contained
67
+ * in Miniperl.pm - edit that file if you want to change anything.
68
+ * miniperlmain.c is generated by running regen/miniperlmain.pl.pl, while
69
+ * perlmain.c is built automatically by Makefile (so the former is
70
+ * included in the tarball while the latter isn't).
64
71
*/
65
72
66
73
#ifdef OEMVS
@@ -217,7 +224,7 @@ __END__
217
224
218
225
=head1 NAME
219
226
220
- ExtUtils::Miniperl - write the C code for perlmain.c
227
+ ExtUtils::Miniperl - write the C code for miniperlmain.c and perlmain.c
221
228
222
229
=head1 SYNOPSIS
223
230
@@ -230,18 +237,21 @@ ExtUtils::Miniperl - write the C code for perlmain.c
230
237
231
238
=head1 DESCRIPTION
232
239
233
- C<writemain() > takes an argument list of directories containing archive
240
+ C<writemain() > takes an argument list of zero or more directories
241
+ containing archive
234
242
libraries that relate to perl modules and should be linked into a new
235
- perl binary. It writes a corresponding F<perlmain.c> file that
243
+ perl binary. It writes a corresponding F<miniperlmain.c> or F<perlmain.c>
244
+ file that
236
245
is a plain C file containing all the bootstrap code to make the
237
246
modules associated with the libraries available from within perl.
238
247
If the first argument to C<writemain() > is a reference to a scalar it is
239
248
used as the filename to open for output. Any other reference is used as
240
249
the filehandle to write to. Otherwise output defaults to C<STDOUT > .
241
250
242
- The typical usage is from within a Makefile generated by
243
- L<ExtUtils::MakeMaker> . So under normal circumstances you won't have to
244
- deal with this module directly.
251
+ The typical usage is from within perl's own Makefile (to build
252
+ F<perlmain.c> ) or from F<regen/miniperlmain.pl> (to build miniperlmain.c).
253
+ So under normal circumstances you won't have to deal with this module
254
+ directly.
245
255
246
256
=head1 SEE ALSO
247
257
0 commit comments