$ h2xs -AX -n Bunk
...
sub MY::postamble {
use Data::Dump();
warn join "\n",
Data::Dump::pp(@_),
"postamble @_ ",
Data::Dump::pp(
$_[0]->{ARGS},
$_[0]->{LINKTYPE}
);
""
}
...
$ perl Bunk/Makefile.PL
...
postamble PACK001=HASH(0xa556a4)
(
{
ABSTRACT_FROM => "lib/Bunk.pm",
AUTHOR => ["A. U. Thor <a.u.thor\@a.galaxy.far.far.away>"],
NAME => "Bunk",
PREREQ_PM => {},
VERSION_FROM => "lib/Bunk.pm",
},
"dynamic",
) at Bunk\Makefile.PL line 15.
Writing Makefile for Bunk
Writing MYMETA.yml and MYMETA.json
$ perl Bunk/Makefile.PL LINKTYPE=static
...
postamble PACK001=HASH(0xa556c4)
(
{
ABSTRACT_FROM => "lib/Bunk.pm",
AUTHOR => ["A. U. Thor <a.u.thor\@a.galaxy.far.far.away>"],
LINKTYPE => "static",
NAME => "Bunk",
PREREQ_PM => {},
VERSION_FROM => "lib/Bunk.pm",
},
"static",
) at Bunk\Makefile.PL line 15.
Writing Makefile for Bunk
Writing MYMETA.yml and MYMETA.json
The PACK001=HASH(0xa556c4) gives a hint as to why calling WriteMakefile twice doesn't work -- MakeMaker is eeeew
:) MakeMaker Is DOOMED! but Module::Build doesn't support static linking
|