Subject: | Makefile should use $^X instead hardcoding "perl" |
The following rule in Makefile.PL is using a hardcoded "perl":
postamble <<'END_OF_MAKEFILE';
XCB_xs.inc:
perl -M_GenerateMyXS -E '_GenerateMyXS::generate()'
END_OF_MAKEFILE
This will fail if the user is using a perl not in the PATH (i.e. if building for another perl than system perl). It's better to use instead the Makefile variable $(PERL) instead, or perl's $^X.