From: Jan Dubois Date: Wed, 23 Dec 1998 21:26:38 +0000 (+0100) Subject: subdirectory Makefiles should inherit CAPI setting from command line X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ea5a1d84955cdb4dfb8693e183cb91d99a231b2f;p=p5sagit%2Fp5-mst-13.2.git subdirectory Makefiles should inherit CAPI setting from command line To: makemaker@franz.ww.TU-Berlin.DE, perl5-porters@perl.org Message-ID: <36895086.8849224@smtp1.ibm.net> p4raw-id: //depot/cfgperl@2503 --- diff --git a/lib/ExtUtils/MakeMaker.pm b/lib/ExtUtils/MakeMaker.pm index 36afa91..6bc0f6c 100644 --- a/lib/ExtUtils/MakeMaker.pm +++ b/lib/ExtUtils/MakeMaker.pm @@ -439,7 +439,10 @@ sub ExtUtils::MakeMaker::new { unless $self->file_name_is_absolute($self->{$key}) || ($^O eq 'VMS' and ($key =~ /PERL$/ && $self->{$key} =~ /^[\w\-\$]+$/)); } - $self->{PARENT}->{CHILDREN}->{$newclass} = $self if $self->{PARENT}; + if ($self->{PARENT}) { + $self->{PARENT}->{CHILDREN}->{$newclass} = $self; + $self->{CAPI} = $self->{PARENT}->{CAPI}; + } } else { parse_args($self,split(' ', $ENV{PERL_MM_OPT} || ''),@ARGV); }