This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How to set the path of shared library in Linux
- From: "Robert Bu" <robert dot bu at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 27 Feb 2008 10:22:13 +0800
- Subject: How to set the path of shared library in Linux
Hello,
How can I set the search path of the shared libraries in Linux for GDB?
I tried "set solib-search-path path_to_my_shared_lib", but GDB still
tries the $LD_LIBRARY_PATH first. I have two versions of the same shared
library, one is in $LD_LIBRARY_PATH, the other is in
path_to_my_shared_libray ( not in $LD_LIBRARY_PATH). GDB just always
uses the one in $LD_LIBRARY_PATH.