On Fri, 18 Feb 2005, Hareesh Nagarajan wrote: > On Fri, 18 Feb 2005 20:10:11 +0100, Philip Nilsson <[EMAIL PROTECTED]> wrote: >> Run ldd on the program you want to debug to know what it >> links against. > > For my program ldd says this among other things: > > libstdc++.so.5 => > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5 (0xb7f0d000) > > Now, how do I make sure that applications I write and run and is > linked against a library with debug features (USE="debug emerge > sys-libs/libstdc++-v3) enabled and all other C++ applications that run > on the system are linked to the existing shared object? Is this > possible? > > I just don't want the debugging info to slow exisiting C++ applications down.
Build a development system. Hope that helps. Sorry. Looking for a software solution? Well, if you have the disk space, you can set up said development system as a chrooted environment, rather on separate hardware. Otherwise, I don't see a sane and maintainable method of doing this. (One could kludge it with an LD_LIBRARY_PATH, but I believe that could be subject to occasional surprises every now and then.) Ed -- [email protected] mailing list
