-rpath or -rpath-link choose wrong library in search path if there are multiple options
Issue
When searching multiple paths as arguments to -rpath
or -rpath-link
, ld
might choose the wrong library if there is a second one with the same name in the search path.
Environment
- Red Hat Enterprise Linux (RHEL).
- Developer Toolset (DTS).
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.