wrong libgcc_s.so picked up in testsuite

Alexandre Oliva aoliva@redhat.com
Mon Mar 3 07:39:00 GMT 2003


On Feb 28, 2003, Michael Ritzert <ritzert@t-online.de> wrote:

> The only thing that I don't quite understand is that /opt/gcc-3.2/lib is 
> hardcoded, but all the libs are apparently still linked against the correct 
> lib in the build tree. Otherwise I wouldn't expect to see the GCC_3.3 error.

Get shared libraries linked with stuff in the build tree such that,
after install, they find their dependencies in the install tree, is
one of the trickiest parts of libtool.  On some platforms, this can
only be accomplished by relinking at install time, after the
dependency is already installed.  On others, one can just tell the
linker where to look for dependencies at link and run time, and it
will just work.  Then, if you use the library in the build tree, it
gets linked on demand.  My recollection of whether libtool actually
does on-demand linking of shared libraries for in-build-tree execution
is a bit fuzzy, but that's the general idea, and I suppose this helps
explain how this stuff can work.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer



More information about the Java mailing list