diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-09-24 02:08:59 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-09-24 02:08:59 +0000 |
commit | 6ce21ffa11ebdb96776e94627b0b5b961130569b (patch) | |
tree | e013a6970fc2c50863f3b16464b4560d64cb35ef /lib | |
parent | 89d3b7e251e9bb072e8bc269628849f3fee64a20 (diff) | |
download | perl-6ce21ffa11ebdb96776e94627b0b5b961130569b.tar.gz |
use $ENV{MAKEMAKEROPT} to set default command line args
p4raw-id: //depot/perl@1859
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ExtUtils/MakeMaker.pm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/ExtUtils/MakeMaker.pm b/lib/ExtUtils/MakeMaker.pm index 6321926948..87c0a87ee8 100644 --- a/lib/ExtUtils/MakeMaker.pm +++ b/lib/ExtUtils/MakeMaker.pm @@ -452,7 +452,7 @@ sub ExtUtils::MakeMaker::new { } $self->{PARENT}->{CHILDREN}->{$newclass} = $self if $self->{PARENT}; } else { - parse_args($self,@ARGV); + parse_args($self,split(' ', $ENV{MAKEMAKEROPT} || ''),@ARGV); } $self->{NAME} ||= $self->guess_name; @@ -1916,6 +1916,18 @@ in a subdirectory of some other distribution, or is listed as a dependency in a CPAN::Bundle, but the functionality is supported by different means on the current architecture). +=head1 ENVIRONMENT + +=over 8 + +=item MAKEMAKEROPT + +Command line options used by C<MakeMaker-E<gt>new()>, and thus by +C<WriteMakefile()>. The string is split on whitespace, and the result +is processed before any actual command line arguments are processed. + +=back + =head1 SEE ALSO ExtUtils::MM_Unix, ExtUtils::Manifest, ExtUtils::testlib, |