Leon Timmermans on my manual Makefile.PL incantation.
… Secondly PREFIX is batshit insane, if you think you know how it works you’re wrong.
Thirdly, this is likely to break on XS modules, given you’re not including the archlib…"
Leon has a huge amount of experience with the module building tool chain, so normally he is someone I’d like to be paying attention to. And in one way he’s right – my understanding of EU::MM is very superficial.
However, calling Makefile.PL in this way works, and works well. I’ve installed over 100 modules with exactly this incantion.
It works for XS modules too. I’ve installed plenty of XS-based modules including DBD::[various stuff], JSON::XS, Starman (including its XS dependency…) and heaps more.
In all cases,
make all test install worked just fine. Perl and XS built, tests run successfully and everything installed in exactly the right place. What’s not to like?
Thanks to Joel and Rick for the constructive suggestions.