summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-09-24 02:08:59 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-09-24 02:08:59 +0000
commit6ce21ffa11ebdb96776e94627b0b5b961130569b (patch)
treee013a6970fc2c50863f3b16464b4560d64cb35ef /lib
parent89d3b7e251e9bb072e8bc269628849f3fee64a20 (diff)
downloadperl-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.pm14
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,