Subject: | makemakerflags do not support more than 1 param |
Scenario - I want to pass some commandline options to Makefile.PL via makemakerflags e.g.
$conf->set_conf(makemakerflags => '--mysql_config=mysql_config');
For one parameter it works nice, however when I try to pass more params like:
$conf->set_conf(makemakerflags => 'INSTALLDIRS=vendor --mysql_config=mysql_config');
it fails (Makefile.PL simply do not thing it was given --mysql_config option).
To make it work it seems to be necessary to:
1/ split makemakerflags (when scalar/string) into parts via something like split_command (see http://search.cpan.org/~mschwern/ExtUtils-MakeMaker-6.62/lib/ExtUtils/MM_Any.pm#split_command)
2/ allow passing arrayref like this:
$conf->set_conf(makemakerflags => ['INSTALLDIRS=vendor', '--mysql_config=mysql_config']);
3/ or allow both 1/ + 2/
There will be probably similar issue with makeflags and buildflags (I have not tested those)
--
kmx
$conf->set_conf(makemakerflags => '--mysql_config=mysql_config');
For one parameter it works nice, however when I try to pass more params like:
$conf->set_conf(makemakerflags => 'INSTALLDIRS=vendor --mysql_config=mysql_config');
it fails (Makefile.PL simply do not thing it was given --mysql_config option).
To make it work it seems to be necessary to:
1/ split makemakerflags (when scalar/string) into parts via something like split_command (see http://search.cpan.org/~mschwern/ExtUtils-MakeMaker-6.62/lib/ExtUtils/MM_Any.pm#split_command)
2/ allow passing arrayref like this:
$conf->set_conf(makemakerflags => ['INSTALLDIRS=vendor', '--mysql_config=mysql_config']);
3/ or allow both 1/ + 2/
There will be probably similar issue with makeflags and buildflags (I have not tested those)
--
kmx