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, [EMAIL PROTECTED]

_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to