libtool
[Top][All Lists]
Advanced

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

Re: Extend libtool dll namespaces for mingw-w64


From: Dave Korn
Subject: Re: Extend libtool dll namespaces for mingw-w64
Date: Sat, 30 Jan 2010 16:40:45 +0000
User-agent: Thunderbird 2.0.0.17 (Windows/20080914)

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




reply via email to

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