[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/foo.so, 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/foo.so. Now
I can link against the dummy, and the executable will actually use
/path/to/foo.so. 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/foo.so and /path/2/bar.so. But
/path/1 also contains its own bar.so, and /path/2 also contains its
own foo.so. 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.
paul
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- dynamic linking to a full path,
Paul Jarc <=