This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/24994] $LIB (DL_DST_LIB) is incorrect on multiarch systems


https://sourceware.org/bugzilla/show_bug.cgi?id=24994

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-09-12
                 CC|                            |carlos at redhat dot com
     Ever confirmed|0                           |1

--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Valentin David from comment #0)
> $LIB` is the directory name of the shared library directory. It is usually
> used as a relative directory from a prefix. That is, typically "/usr/$DIR"
> should point to the library directory. However in multiarch directory the
> relative path from prefix contains two components, e.g.
> lib/x86_64-linux-gnu. The way DL_DST_LIB is calculated strips the previous
> components of the path and only keeps x86_64-linux-gnu.

Agreed.

> $(notdir $(slibdir)) should be replaced by something like $$(realpath
> $(slibdir) --relative-to=$(prefix)) or $(patsubst $(prefix)/%,%,$(slibdir))

Valentin, Could you please prototype a patch for this and send it to
libc-alpha? TO: me for review.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]