This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Should gcc add RPATH for libstdc++.so?
On Mar 21, 2001, Gordon Sadler <gbsadler1@lcisp.com> wrote:
> On Wed, Mar 21, 2001 at 12:11:40AM -0500, Craig Rodrigues wrote:
>> The submitter suggested that gcc should add the flag
>> -Wl,-rpath,[path to libstdc++.so] when it compiles something.
> If you hardcode rpath into a lib or binary... You cannot effectively
> move it after you install it.
Anyone who follows Debian should know this is not true. Years ago, we
debated it to death, and the conclusion was that you can move it (but
then you may have to set LD_LIBRARY_PATH, etc), you just can't replace
it with something incompatible. Which is what some folks did in the
libc5->6 upgrade, and caused so much trouble.
Besides, we've had this debate before. It's *very* hard for the
compiler to introduce -rpath (or equivalent) without modifying the
linking behavior. Please search the archives, I posted a number of
long messages about this a while ago.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me