On Thu, Nov 06, 2003 at 01:48:20PM +0100, Jochen Eisinger wrote:
> Michael G Schwern wrote:
> > What is rpath anyway?
> the path where the elf loader will search for libraries. A tidy system
> shouldn't need a /etc/ld.so.conf and stuff since every elf file already
> contains enough information where to search for dynamic libraries. The
> rpath is set with -Wl,-R or -R or -rpath
> 
> It's the path where the module will search for libperl.so in this case.
> 
> > And why would anything rely on $(INSTALLARCHLIB)/CORE
> > being in it?
> dunno, maybe somebody wants his or her own libperl or something...
> 
> > I wish I knew who originally patched this.
> 
> [EMAIL PROTECTED] patched it into the 5.6.1 NetBSD package.

Ok then, we'll ask him.

Hi.  We're discussing this bit in ExtUtils::MM_Unix.

    if ($Is_NetBSD && $Config{'useshrplib'}) {
        # Use nothing on static perl platforms, and to the flags needed
        # to link against the shared libperl library on shared perl
        # 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';
        } elsif ($Config{'lddlflags'} =~ /-R/) {
            $libs .= ' -L$(PERL_INC) -R$(INSTALLARCHLIB)/CORE -lperl';
        }
    }

It appears that $(INSTALLARCHLIB)/CORE is a mistake.  INSTALLARCHLIB
is where the architecture specific libraries are going to be installed.
By default this is $(PERL_ARCHLIB) but it can be changed if the
user sets it explicitly or implicitly with something like PREFIX.  This
means the files in CORE won't be found like the Perl headers and shared
libraries.

We're trying to figure out if we should just replace INSTALLARCHLIB with
PERL_ARCHLIB, or put both INSTALLARCHLIB and PERL_ARCHLIB in.  It seems
like the former is correct.

Did you deliberately intend to use INSTALLARCHLIB for some reason or did 
you accidentally use it instead of PERL_ARCHLIB?


-- 
Michael G Schwern        [EMAIL PROTECTED]  http://www.pobox.com/~schwern/
They had applied the blinders of steam-grilled hamburgers to my eyes.

Reply via email to