bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/20177] ld ignores --with-lib-path and -L for indirectly lo


From: nickc at redhat dot com
Subject: [Bug binutils/20177] ld ignores --with-lib-path and -L for indirectly loaded libraries
Date: Fri, 03 Jun 2016 09:50:55 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]