[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
LD_LIBRARY_PATH/LD_RUN_PATH
From: |
Douglas Nelson |
Subject: |
LD_LIBRARY_PATH/LD_RUN_PATH |
Date: |
Thu, 01 Nov 2001 10:21:52 -0500 |
I see in your archives that others have had this problem, but I do not
see the solution.
Problem: When I build an application using gcc that uses a dynamic
library, say libxxx.so, and I include in the makefile the correct -lxxx
and -L<directory> options (but no -R or -rpath options), I can run the
executable ok from the command line of a shell (csh) when I have my
LD_LIBRARY_PATH, and/or LD_RUN_PATH set to the appropriate search path.
However, if I try to debug the program in gdb, gdb apparently does not
know the search path even though the above environment variables have
been set as part of the debug environment. I also tried the 'set
solib-search-path' command with no success.
I can debug successfully if I use the -Xlinker -rpath ... option in the
make file, but I can't believe that gdb would not have the cabability to
find the libraries as above.
Also: Why does '-R' work as a -rpath equivalent even though there is
nothing in the documentation about it?
Thanks,
Doug Nelson, address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- LD_LIBRARY_PATH/LD_RUN_PATH,
Douglas Nelson <=