develooper Front page | perl.perl5.porters | Postings from April 2001

Re: Relocatable perl

Thread Previous | Thread Next
From:
Alan Burlison
Date:
April 30, 2001 09:53
Subject:
Re: Relocatable perl
Message ID:
3AED988F.7691C714@uk.sun.com
Dan Sugalski wrote:

> We don't go quite as far as having the perl executable actually figure out
> its current location and set PERL_ROOT at runtime--we could but it'd make
> linking in the shared-library part of perl (which is also located relative
> to PERL_ROOT) a bit more of a pain. We'd have to do the equivalent of
> dlopen()ing it, rather than have the image activator go find it for us at
> image start time.

That is actually how it works on Solaris - you call back into ld.so and ask
it where it found the object file.  You can do this on either the executable
or a shared library.

Alan Burlison

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About