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

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |nickc at redhat dot com
         Resolution|---                         |INVALID

--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Hi Romain,

  This happens because the linker uses a different method for locating
  libraries referenced via DT_NEEDED entries to libraries referenced from
  the command line.  In particular libraries referenced via DT_NEEDED entries 
  are searched for in the following places, in order:

   1. If a -rpath-link option has been provided, then in this path.
   2. If a -rpath option has been provided, then in this path.
   3. If the LD_RUN_PATH environment variable exists and neither of the first
      two options were specified, then in this path.
   4. If the LD_LIBRARY_PATH environment variable exists, then in this path.
   5. If the DT_RPATH or DT_RUN_PATH tag exists in the library containing 
      the DT_NEEDED entry, then in this path.

  Paths specified by the -L command line option (and --with-lib-path configure 
  time options) are not used.  This is documented in the linker manual.  Have
  a look at the description of the -rpath-link option, for example.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to