Front page | perl.perl5.porters |
Postings from April 2001
Re: Relocatable perl
Thread Previous
|
Thread Next
From:
Nicholas Clark
Date:
April 30, 2001 12:43
Subject:
Re: Relocatable perl
Message ID:
20010430204257.M88186@plum.flirble.org
On Mon, Apr 30, 2001 at 05:23:13PM +0100, Graham Barr wrote:
> On Mon, Apr 30, 2001 at 05:14:33PM +0100, Alan Burlison wrote:
> > Graham Barr wrote:
> > > > This would only work if the above variables all
> > > > had a common directory prefix - if someone decided for some reason to tell
> > > > Configure they wanted SITELIB_EXP on a completely different filesystem there
> > > > would be no common directory prefix to twiddle.
> > >
> > > Just define a special token that gets replaced.
> >
> > This happens at run-time - how would that work?
>
> Define a character constant say ROOT that would be replaces at runtime. So any
> of the path variable that start ROOT would have ROOT replaced with the real
> root.
I wondered whether starting configure time library path with "./" would be
a good sign that you wanted it relative to something.
However, "something" may well be "../lib" relative to the directory where
the perl binary is, so maybe starting with not "/" treats it as relative to
the directory where the perl binary is.
Is this enough ? It only lets one have libraries in one of
two places - fixed absolute, or fixed relative to the perl binary.
Nicholas Clark
Thread Previous
|
Thread Next