At 11:48 PM -0600 3/31/03, Craig A. Berry wrote:
>For some reason older versions of MakeMaker never actually got the
>initialization of the PERL_ARCHIVE macro into the descrip.mms on VMS.
>The new version does, but it's value is wrong.  The patch here fixes
>that.

Well, actually, that wasn't quite right.  We should never reference
the PERLSHR logical name in this context.  During a core build, if it
exists it will refer to an installed Perl, not the one we're
building.  When building an extension against an installed Perl, it
doesn't buy us anything over PERL_SRC because of the way perl_root
works on VMS.  So, here's my second and hopefully final attempt at this.

--- lib/ExtUtils/MM_VMS.pm;-0   Mon Mar 31 05:52:00 2003
+++ lib/ExtUtils/MM_VMS.pm      Mon Mar 31 21:40:25 2003
@@ -2226,7 +2226,7 @@
     $self->{EXPORT_LIST} ||= '$(BASEEXT).opt';
 
     my $shr = $Config{dbgprefix} . 'PERLSHR';
-    $self->{PERL_ARCHIVE} ||=  $ENV{$shr} ? $ENV{$shr} : 
"Sys\$Share:$shr.$Config{'dlext'}";
+    $self->{PERL_ARCHIVE} ||= 
$self->catfile($self->{PERL_SRC},"$shr.$Config{'dlext'}");
 
     $self->{PERL_ARCHIVE_AFTER} ||= '';
 }
[end of patch]
-- 
________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser

Reply via email to