[Bug libc/30306] ld.so.conf could easily / should support binary specific LD_PATH directory search path settings ?
jason.vas.dias at gmail dot com
sourceware-bugzilla@sourceware.org
Mon Apr 3 19:09:18 GMT 2023
https://sourceware.org/bugzilla/show_bug.cgi?id=30306
--- Comment #3 from Jason Vas Dias <jason.vas.dias at gmail dot com> ---
RE: Comment #2:
> Why can't you just add /usr/local/lib64 unconditionally to /etc/ld.so.conf?
Thanks, Andreas -
Because there may be many other libraries in /usr/local/lib64 - in fact,
there is a libgcc-shared.so and a libstdc++.so.6 in /usr/local/lib64,
which I'd rather not pick up at all - I want to be able to move
libbpf's libraries to some /usr/local/libbpf-v1.1.0/lib64 directory ,
and specify that they apply ONLY to links needed for /usr/bin/perf,
I do NOT want these updated libbpf* links to update the system
libbpf at all, which MUST remain at v0.7.0, else everything that
uses libbpf (except perf) will break .
It just seems to me that having some very simple extra config
in ld.so.conf, to apply a LD_PATH only to certain executables,
would prevent a whole host of error prone disasters involved
with binary patching in of a DT_RUNPATH ELF note .
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list