[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ian's solution [was: What hack in ld.so?]

Gordon Matzigkeit wrote:
> There's been so much traffic on this thread, that I suspect most
> people have missed the fact that Ian Lance Taylor has analyzed and
> *solved* the problems with interaction between libtool and
> libc5-compat shared libraries.

I don't think this adresses the core problem. Yes, it fixes the libc5/6
problem, but consider this situation:

* Program xfoo is linked with libXaw.so
* -rpath is used so it's hard coded to look for this library in
* The user of program xfoo wants to use the xaw3d widget set with it instead
  of the default libXaw.so. They expect to be able to set LD_PRELOAD to
  point to /usr/X11R6/lib/xaw95/ and for the linker to pick up and use the
  libXaw.so in that directory, which is the xaw95 version of the library.
* Since -rpath was used, this will not work.

see shy jo

Reply to: