On Sun, Nov 02, 2003 at 09:50:48PM +0100, Jochen Eisinger wrote:
> I think it should expand to
> 
> LLIBPERL=-L$(PERL_INC) -Wl,-R$(INSTALLARCHLIB)/CORE \
>   -Wl,-R$(PERL_ARCHLIB)/CORE -lperl
> 
> If you have a local copy of libperl.so, it works (that's what it does at
> the moment). If not, it uses your default libperl.so (doesn't work now,
> a bug IMHO)

Why keep INSTALLARCHLIB in there?  Why not

    LLIBPERL=-L$(PERL_INC) -Wl,-R$(PERL_ARCHLIB)/CORE -lperl

I don't think it really means to be looking for a CORE in INSTALLARCHLIB
but rather meant PERL_ARCHLIB from the start and just got lucky because
unless you say otherwise INSTALLARCHLIB and PERL_ARCHLIB are the same.

Could you try this out:

--- lib/ExtUtils/MM_Unix.pm     4 Nov 2003 06:57:19 -0000       1.200
+++ lib/ExtUtils/MM_Unix.pm     6 Nov 2003 10:32:57 -0000
@@ -1083,9 +1083,9 @@
        # platforms.  We peek at lddlflags to see if we need -Wl,-R
        # or -R to add paths to the run-time library search path.
         if ($Config{'lddlflags'} =~ /-Wl,-R/) {
-            $libs .= ' -L$(PERL_INC) -Wl,-R$(INSTALLARCHLIB)/CORE -lperl';
+            $libs .= ' -L$(PERL_INC) -Wl,-R$(PERL_ARCHLIB)/CORE -lperl';
         } elsif ($Config{'lddlflags'} =~ /-R/) {
-            $libs .= ' -L$(PERL_INC) -R$(INSTALLARCHLIB)/CORE -lperl';
+            $libs .= ' -L$(PERL_INC) -R$(PERL_ARCHLIB)/CORE -lperl';
         }
     }
 


-- 
Michael G Schwern        [EMAIL PROTECTED]  http://www.pobox.com/~schwern/
Playstation?  Of course Perl runs on Playstation.
    -- Jarkko Hietaniemi

Reply via email to