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.Elphick@lfix.co.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