On Wed Sep 16 06:11:07 2015, mattn wrote:
Show quoted text> fixed in 1.04
+ foreach my $arg (split(' ', $ENV{PERL_MM_OPT}||'')) {
+ push @incpaths, substr($arg, 2)
+ if $arg =~ /^-I/;
+ push @{$arg =~ /^-l/ ? \@libs : \@libpaths}, substr($arg, 2)
+ if($arg =~ /^-[lLR]/);
+ }
This doesn't look right to me. Here's an example of how PERL_MM_OPT is used:
export PERL_MM_OPT='INC=-I/home/nik/install/include LIBS="-L/home/nik/install/lib -lcmark"'
It's basically a space-separated list of shell var assignments. Note that the variable values can contain spaces in shell-style double-quoted strings. It's possible that other escape mechanisms may be used as well. Have a look at the ExtUtils::MakeMaker, especially the _shellwords function.