Re: Shared library search paths
От | Oliver Elphick |
---|---|
Тема | Re: Shared library search paths |
Дата | |
Msg-id | 200007182247.e6IMleA11674@linda.lfix.co.uk обсуждение исходный текст |
Ответ на | Shared library search paths (Peter Eisentraut <peter_e@gmx.net>) |
Ответы |
Re: Shared library search paths
|
Список | pgsql-hackers |
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
В списке pgsql-hackers по дате отправления: