-rpath or -rpath-link choose wrong library in search path if there are multiple options

Solution In Progress - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content