[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dynamic linking to a full path

From: Paul Jarc
Subject: dynamic linking to a full path
Date: Fri, 30 Nov 2001 16:49:10 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)

Suppose I want to link an executable against /path/to/, where
/path/to is not in any search path.  I could use -rpath, but there are
potential problems[*] with that.  So instead I build a dummy shared
object, using ld -soname to set its DT_SONAME to /path/to/  Now
I can link against the dummy, and the executable will actually use
/path/to/  Is there any easier way to do this?  Any way that
also works with non-GNU linkers?

Suppose I want to link to /path/1/ and /path/2/  But
/path/1 also contains its own, and /path/2 also contains its
own  There is no search path, even using -rpath, that will
find both libraries correctly.  I must link to each one by its full
path individually.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]