From: Gurusamy Sarathy Date: Thu, 24 Sep 1998 02:08:59 +0000 (+0000) Subject: use $ENV{MAKEMAKEROPT} to set default command line args X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6ce21ffa11ebdb96776e94627b0b5b961130569b;p=p5sagit%2Fp5-mst-13.2.git use $ENV{MAKEMAKEROPT} to set default command line args p4raw-id: //depot/perl@1859 --- diff --git a/lib/ExtUtils/MakeMaker.pm b/lib/ExtUtils/MakeMaker.pm index 6321926..87c0a87 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 Cnew()>, and thus by +C. 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,