Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.system > #483
| From | Philipp Kraus <philipp.kraus@flashpixx.de> |
|---|---|
| Newsgroups | comp.os.linux.development.system |
| Subject | Re: rpath for library loading |
| Date | 2012-12-17 13:36 +0100 |
| Organization | 1&1 Internet AG |
| Message-ID | <kan3ar$4me$1@online.de> (permalink) |
| References | <kamm8q$rc7$1@online.de> <8738z5t0wl.fsf@araminta.anjou.terraraq.org.uk> |
On 2012-12-17 11:42:50 +0100, Richard Kettlewell said: > Philipp Kraus <philipp.kraus@flashpixx.de> writes: >> I hope somebody can explain me a little bit the loader process for >> shared libraries. I have got a library "libmylib.so", this depends on >> some other libs. I have set the rpath to "./". If I run "ldd >> libmylib.so" all depend libraries will be found. I do not need to >> setup any environment variables. All *.so files are in the same >> directory. >> >> If I load my "libmylib.so" in my application I get an error that the >> depend libraries are not found. IMHO the rpath flag tells the library >> in which directory the library should be found, so in my case rpath is >> "./" the library should be found relative to "libmylib.so" eg: > > An rpath of . means it looks in the current directory at the time of > execution, not in the same location as the object containing the rpath. That's bad. Can I add a flag that the rpath should be relative to the other DLL? Under OSX I use @loader_path Thanks Phil
Back to comp.os.linux.development.system | Previous | Next — Previous in thread | Next in thread | Find similar
rpath for library loading Philipp Kraus <philipp.kraus@flashpixx.de> - 2012-12-17 09:53 +0100
Re: rpath for library loading Richard Kettlewell <rjk@greenend.org.uk> - 2012-12-17 10:42 +0000
Re: rpath for library loading Philipp Kraus <philipp.kraus@flashpixx.de> - 2012-12-17 13:36 +0100
Re: rpath for library loading Richard Kettlewell <rjk@greenend.org.uk> - 2012-12-17 13:26 +0000
Re: rpath for library loading Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-12-17 15:03 +0000
csiph-web