[RFC] Alternative LD_LIBRARY_PATH
H. J. Lu
hjl@lucon.org
Wed Nov 24 17:09:00 GMT 2004
On Wed, Nov 24, 2004 at 10:18:45AM -0500, John David Anglin wrote:
> > Works fine on SPARC/Solaris, except for libjava: all execution tests now
> > fail
> > with:
> >
> > set_ld_library_path_env_vars: ld_library_path=.
> > Setting LD_LIBRARY_PATH
> > to .:.:.:/opt/build/eric/gcc/gcc:/opt/build/eric/local/lib
> > ld.so.1: gij: fatal: libgij.so.0: open failed: No such file or directory
> > FAIL: Array_3 execution - gij test
> > UNTESTED: Array_3 output - gij test
>
> Ok, I see this on hppa-linux but the tests are picking up an installed
> library so they don't fail. It looks like the path set in ld_library_path
> in the libjava test is getting overridden by a sourced file at execution
> time. There's only a couple of places this could occur. I'll look at
> this tonight.
Try not to use the global ld_library_path. See
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17469
H.J.
More information about the Gcc-patches
mailing list