public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* runtime link path and g++
@ 2008-07-20 12:10 Wesley Smith
  2008-07-20 22:30 ` Eljay Love-Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: Wesley Smith @ 2008-07-20 12:10 UTC (permalink / raw)
  To: GCC-help

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

PS sorry for duplicate posting.  I had forgotten to change the subject line

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-20 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-20 12:10 runtime link path and g++ Wesley Smith
2008-07-20 22:30 ` Eljay Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).