[Zlib-devel] [PATCH] mingw zlib import library name
Enrico Weigelt
weigelt at metux.de
Fri Apr 30 12:13:22 EDT 2010
* John Bowler <jbowler at frontiernet.net> schrieb:
> >Is this an Gentoo-specific issue or generic ?
>
> Generic, quite apart from Kalev Lember's observation that the
> same thing is done on Fedora, it is a general convention that
> the package provider, not the package user, chooses whether
> a package library is provided as a DLL or statically.
hmm, so should we merge this change ?
BTW: the decision whether to link dynamic or static should IMHO
be done when building the importing package - the lib itself
should be provided in both variants.
> I don't know of another package where the static and dynamic
> libraries are built under two distinct names.
ACK. That's what toolchain options like -static are for.
> Actually... I go further. I don't know *any* package, including
> zlib, where this is done - I just took a look at my own mingw
> build system and I see *I* had to install zlib as libz.dll.a
> while testing libpng (otherwise it simply didn't work - libpng
> doesn't know anything about -lzdll).
ACK. One thing we *could* do is providing to .pc files, one for
dynamic and one for static - so importing packages can make
this decision on the pkg-config query.
cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service - http://www.metux.de/
---------------------------------------------------------------------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
---------------------------------------------------------------------
More information about the Zlib-devel
mailing list