RFA: cygwin-specific patch for ldfile.c

Ian Lance Taylor ian@zembu.com
Tue May 16 07:48:00 GMT 2000


   Date: Tue, 16 May 2000 00:59:13 -0400
   From: "Charles S. Wilson" <cwilson@ece.gatech.edu>
   X-Accept-Language: en
   CC: khan@nanotech.wisc.dot.edu, dj@delorie.com
   Content-Type: text/plain; charset=us-ascii

   The following patch to binutils/ld/ldfile.c allows ld to search the
   library path for foo.dll and libfoo.dll, prior to searching for
   libfoo.a, in response to a '-lfoo' argument if linking is dynamic
   (-Bdynamic). This takes advantage of the recent ability of ld to link
   against a dll without an explicit import library (that is, generating an
   implicit import lib from the dll on-the-fly)

Thanks.  Your patch isn't right, though, since you are testing a
target characteristic with a host #ifdef, which is pretty much always
wrong in the binutils.  Look at the open_dynamic_archive emulation
entry point.

Ian


More information about the Binutils mailing list