[Top][All Lists]

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

RE: Libtool API suggestion: LTDL_SHLIB_PRE and/or char*ltdl_map_shared_n

From: Charles Wilson
Subject: RE: Libtool API suggestion: LTDL_SHLIB_PRE and/or char*ltdl_map_shared_n
Date: Fri, 09 Sep 2005 22:09:41 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

* Alexandre Oliva wrote on Thursday, September 08, 2005 22:13 CEST:
> On Aug 23, 2005, Albert Chin <address@hidden>

> 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,

          cygxxx.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.


reply via email to

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