gcc-4.8.x with dwarf-2 debugging information

Marc Glisse marc.glisse@inria.fr
Thu Nov 21 12:42:00 GMT 2013


On Thu, 21 Nov 2013, tassos_souris wrote:

> Also, when i
> used my new gcc command /home/gcc/bin/g++ myapp and used ldd a.out i saw
> that it still uses the system wide standard libraries from /usr /x86.xxxx
> (and stuff). Shouldn't it use the libraries from its install directory?

Look for -Wl,-rpath or LD_LIBRARY_PATH in the documentation of gcc, ld and 
ld.so. There is also something about this in:
http://gcc.gnu.org/faq.html

-- 
Marc Glisse



More information about the Gcc-help mailing list