This is the mail archive of the
mailing list for the binutils project.
Does ld/gold-l always simply add files to the command line
- From: Niklas Hambüchen <mail at nh2 dot me>
- To: binutils at sourceware dot org
- Cc: Ben Gamari <bgamari dot foss at gmail dot com>
- Date: Wed, 26 Jul 2017 22:44:27 +0200
- Subject: Does ld/gold-l always simply add files to the command line
- Authentication-results: sourceware.org; auth=none
is the -l flag to ld and gold guaranteed to have the same effect as
passing the found library file (.so or .a) directly on the command line?
In other words, is it just "lookup convenience", or are there cases
where -l might do something different than passing the relevant file
(I'm asking this for the GHC Haskell compiler, specifically for this
linker related issue: https://ghc.haskell.org/trac/ghc/ticket/14031)