From: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>, pgsql-ports(at)postgresql(dot)org |
Subject: | Re: Shared library search paths |
Date: | 2000-07-18 22:47:38 |
Message-ID: | 200007182247.e6IMleA11674@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-ports |
Peter Eisentraut wrote:
>Some platforms (OSF/cc, HPUX) are already using -rpath or equivalent, so
>you don't have to specify a shared library search path at runtime. I think
>that a lot more platforms could use this. Can people comment on whether
>and how it works on their platform? Essentially,
>
>LDFLAGS+=-rpath '$(libdir)'
>
>might do the trick for most.
As far as Debian is concerned, use of rpath is a bug. Here's a quote from
some Debian system documentation:
libtool automatically inserts `-rpath' settings when compiling your
program. But `-rpath' can cause big problems if the referenced
libraries get updated. Therefore, no Debian package should use the
`-rpath' option.
libtool also refuses to link shared libraries against other shared
libraries. Debian packages have to at least link against libc (with
"-lc"), so that the dynamic linker knows whether to use the
libc5-compat libraries or not.
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"For God so loved the world, that he gave his only
begotten Son, that whosoever believeth in him should
not perish, but have everlasting life." John 3:16
From | Date | Subject | |
---|---|---|---|
Next Message | Lamar Owen | 2000-07-18 23:00:15 | linux.h |
Previous Message | Mikheev, Vadim | 2000-07-18 22:47:10 | RE: btree split logic is fragile in the presence of lar ge index items |
From | Date | Subject | |
---|---|---|---|
Next Message | The Hermit Hacker | 2000-07-19 01:48:33 | Re: [PORTS] Shared library search paths |
Previous Message | Mark Dalphin | 2000-07-18 21:55:35 | Re: Shared library search paths |