This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/17251] RPATH of shared libraries doesn't follow symlinks for $ORIGIN
- From: "bpshacklett at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 10 Aug 2014 17:10:55 +0000
- Subject: [Bug dynamic-link/17251] RPATH of shared libraries doesn't follow symlinks for $ORIGIN
- Auto-submitted: auto-generated
- References: <bug-17251-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17251
--- Comment #1 from Brennan Shacklett <bpshacklett at gmail dot com> ---
Oops, sorry for the empty description, firefox decided to submit the form when
I hit enter.
The issue is that if a shared library has $ORIGIN in its RPATH, $ORIGIN is not
calculated as the real path of the library.
This can easily be shown with two shared libraries and a symlink:
libone.so and libtwo.so are both in a directory named ~/lib
libone.so needs libtwo.so, and has an RPATH of "$ORIGIN" so libtwo.so can be
found.
If I cd into ~/lib and run ldd on libone.so, libtwo.so is found.
If I create a symlink from ~/libone.so to ~/lib/libone.so, and run ldd on the
symlink at ~/libone.so, libtwo.so can no longer be found because $ORIGIN is not
calculated as ~ rather than ~/lib
--
You are receiving this mail because:
You are on the CC list for the bug.