Policy on naming of implibs
Farkas Levente
lfarkas at lfarkas.org
Sat Nov 22 20:42:19 UTC 2008
Richard W.M. Jones wrote:
> I think we need a policy of naming implibs.
>
> For example, the standard build of bzip2 builds a DLL and implib
> called 'bz2-1.dll' and 'bz2.dll.a' respectively. That's not in itself
> a problem because you can link with such a library by hand using:
>
> gcc foo.c -lbz2
>
> GCC apparently checks for both 'bz2.dll.a' and 'libbz2.dll.a', so it
> works in this situation.
>
> However libtool won't look for 'bz2.dll.a' at all, only an implib
> beginning with 'lib*'. If you try to specify the library by giving
> the full path to libtool, then libtool assumes it's a static library.
>
> The only way around this was to rename 'bz2.dll.a' -> 'libbz2.dll.a'
> which fixes my libtool problem. (Leaving the DLL with the same name
> was fine).
>
> http://hg.et.redhat.com/misc/fedora-mingw--devel/?cs=e18117547659
>
> So I think we need a policy that implibs need to be named after the
> pattern 'lib*.dll.a'.
>
> By my reckoning this problem affects:
>
> mingw32-bzip2 (fixed by the changeset above)
> mingw32-readline
> mingw32-pdcurses
probably it's the best quick solution, but is not there any change to
fix it at the libtool side?
--
Levente "Si vis pacem para bellum!"
More information about the mingw
mailing list