Re: Relocatable installs

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jan Wieck <JanWieck(at)Yahoo(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Relocatable installs
Date: 2004-05-18 19:07:50
Message-ID: 200405181907.i4IJ7oC09140@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jan Wieck wrote:
> > Static linking of our binaries? Hmmm. Makes sense. We would need a
> > special flag for that. I can add it to the TODO.
> >
> > Seems my testing was flawed because I didn't clean out my hard-coded
> > directory properly. I see now:
> >
> > $ bin/initdb
> > bin/initdb: can't load library 'libpq.so.3'
> >
> > and I see in my initdb link line:
> >
> > -Wl,-rpath,/usr/local/pgsql/lib
>
> If I remore the whole -rpath thing, and remove the two -L options and
> the -lpq and -lpgport, and add the libpq.a and libpgport.a explicitly to
> the linker call, the psql executable on my Linux box grows from 421761
> to 677682 bytes in size. It is still shared linked against libc, libz,
> libreadline and a bunch of otheres, but all of them are in /lib or
> /usr/lib, so they are standard or system libraries. It does not depend
> on a libpq.so any more, and that is what we want.

We already have --disable-rpath. Seems we would just need something to
use the *.a files.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2004-05-18 19:11:16 Re: Relocatable installs
Previous Message Bruce Momjian 2004-05-18 18:54:34 Re: Call for 7.5 feature completion