* Alexandre Oliva wrote on Thursday, September 08, 2005 22:13 CEST:
> On Aug 23, 2005, Albert Chin <[EMAIL PROTECTED]>
wrote:

> I don't know of
> any linker that searches for say foo.a when given -lfoo.


Uhm, how about ld?  'info ld' reveals...

     For instance, when ld is called with the argument `-lxxx' it will
     attempt to find, in the first directory of its search path,

          libxxx.dll.a
          xxx.dll.a
          libxxx.a
          cygxxx.dll (*)
          libxxx.dll
          xxx.dll

     before moving on to the next directory in the search path.

     (*) Actually, this is not `cygxxx.dll' but in fact is
     `<prefix>xxx.dll', where `<prefix>' is set by the `ld' option
     `--dll-search-prefix=<prefix>'. In the case of cygwin, the
     standard gcc spec file includes `--dll-search-prefix=cyg', so in
     effect we actually search for `cygxxx.dll'.

Note that since ld on windowsish platforms can link directly to the shared lib (cygxxx.dll, libxxx.dll, or xxx.dll) instead of using an import lib (libxxx.dll.a), it is certainly legal for the developer to specify '-lfoo' and expect to successfully link against foo.dll.

--
Chuck



_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to