On 30/01/2010 14:56, Ralf Wildenhues wrote:
> web site, refer to this page, rebuild your binutils ld to automatically
> search for the changed prefix when it encounters -lfoo on the command
Not binutils, I don't think:
> [1] My ld.info contains, speaking about cygwin,
>
> 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
> xxx.lib
> 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'.
Yes; this relies entirely on the compiler's LINK_SPEC to pass the correct
--dll-search-prefix, as far as I know; W64 team need to do the same with their
compiler specs. It's not part of LD itself.
cheers,
DaveK
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool