in reply to Re^2: 2nd run of WriteMakefile ignores MY overloads
in thread 2nd run of WriteMakefile ignores MY overloads
I was right, you don't need to run it twice :)
http://search.cpan.org/dist/PAR-Packer/MANIFEST http://cpansearch.perl.org/src/RSCHUPP/PAR-Packer-1.013/myldr/Makefile.PL redefines CFLAGS (and friends) in postamble, after MakeMaker has expanded all the stuff ( LINKTYPE and everything )
$ 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: 2nd run of WriteMakefile ignores MY overloads
by bulk88 (Priest) on Apr 05, 2012 at 06:02 UTC | |
by Anonymous Monk on Apr 05, 2012 at 06:51 UTC |