poisoned "malloc"

Wesley Smith wesley.hoke@gmail.com
Sun Jul 20 02:45:00 GMT 2008


Hi,
I'm trying to figure out how to manage shared library dependencies via
g++ on ubuntu 6.10.  I have a shared library I'm building that links
against some other shared libraries.  For reasons particular to my
project, I'm not putting the dependencies in /usr/lib but in a
completely different dir.  I can link against them just fine using -L,
but when I run ldd on the resulting lib, it can't find them.  Ideally,
I'd like to add the runtime link path aka LD_RUN_PATH "./" (i.e. path
of the lib itself).  How can I specify this path to g++?  I've seen -R
used in some places, but g++ doesn't understand it.

thanks,
wes



More information about the Gcc-help mailing list