This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
use $ENV{MAKEMAKEROPT} to set default command line args
authorGurusamy Sarathy <gsar@cpan.org>
Thu, 24 Sep 1998 02:08:59 +0000 (02:08 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Thu, 24 Sep 1998 02:08:59 +0000 (02:08 +0000)
p4raw-id: //depot/perl@1859

lib/ExtUtils/MakeMaker.pm

index 6321926..87c0a87 100644 (file)
@@ -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,