static linking with uninstalled perl
authorIlya Zakharevich <ilya@math.berkeley.edu>
Mon, 23 Oct 2000 17:29:03 +0000 (13:29 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 24 Oct 2000 13:30:53 +0000 (13:30 +0000)
Message-ID: <20001023172903.A18749@monk.mps.ohio-state.edu>

p4raw-id: //depot/perl@7420

lib/ExtUtils/MM_Unix.pm

index 52862c5..2783965 100644 (file)
@@ -2455,6 +2455,7 @@ MAP_PRELIBS   = $Config::Config{perllibs} $Config::Config{cryptlib}
     }
     unless ($libperl && -f $lperl) { # Ilya's code...
        my $dir = $self->{PERL_SRC} || "$self->{PERL_ARCHLIB}/CORE";
+       $dir = "$self->{PERL_ARCHLIB}/.." if $self->{UNINSTALLED_PERL};
        $libperl ||= "libperl$self->{LIB_EXT}";
        $libperl   = "$dir/$libperl";
        $lperl   ||= "libperl$self->{LIB_EXT}";