Use of -rpath
PostgreSQL upstream developers are proposing to use -rpath to find the
correct libpq shared libraru at runtime. lintian objects to -rpath
and /usr/share/doc/lintian/libtool-workarounds.txt contains the text I
quoted to them.
Could someone comment on the attached message, please?
------- Forwarded Message
Date: Thu, 20 Jul 2000 00:46:01 -0500
From: Peter Eisentraut <firstname.lastname@example.org>
To: Oliver Elphick <email@example.com>
cc: PostgreSQL Development <firstname.lastname@example.org>,
Subject: Re: [HACKERS] Shared library search paths
Oliver Elphick writes:
> 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
I don't think so.
> But `-rpath' can cause big problems if the referenced
> libraries get updated. Therefore, no Debian package should use the
> `-rpath' option.
I'm not sure I buy that. All -rpath does is add a directory to the search
path that the program consults at runtime for its shared libraries. So
it's just an alternative in place of
hard-coded into dynamic linker
but it's the terminally accurate alternative.
What does happen if the referenced library gets updated? Nothing. -rpath
doesn't reference any libraries, it just suggests to the runtime linker
where it might look for one. I don't want to use it to find system
libraries, I just want psql to find libpq, and the right libpq, and I want
to relieve installers from having to fiddle around with these settings.
> libtool also refuses to link shared libraries against other shared
I don't think so.
Peter Eisentraut Sernanders väg 10:115
email@example.com 75262 Uppsala
------- End of Forwarded Message
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
"Behold, what manner of love the Father hath bestowed
upon us, that we should be called the sons of God..."
I John 3:1