On Sun, 20 Jun 2021 06:36:29 -0700 Kenneth Porter wrote:
KP> --On Sunday, June 20, 2021 3:01 PM +0200 Vadim Zeitlin
KP> <
va...@wxwidgets.org> wrote:
KP>
KP> > it would still be nice if it could be avoided.
KP>
KP> I think you need to expand "would be nice" to specific advantages. A few
KP> come to mind, but none seem compelling:
KP>
KP> * shorter build time
KP> * smaller memory footprint
KP> * easier servicing of issues in the dependent library
Yes, sorry, I should have clearly explained it better, thanks for pointing
it out. "Nice" was shorthand for "simpler to use". I.e. if a project
already builds wxWidgets, it's just simpler if you can reuse zlib etc
already built as part of this build, rather than building it separately
because you need to use it directly (or, again, because another library you
use needs to use it directly, which is a more common use case IME).
You're right that the points above are not compelling at all, but having
to keep a different copy of the libraries already used in wx and to build
them is somewhat of a burden. As I already wrote, I end up with 2 copies of
zlib in almost all of my projects, and in at least one of them I had 3
copies of it because another dependency included its own bundled copy of
zlib too, which really doesn't seem ideal, if only because you're almost
surely going to end up using different versions of the same library, sooner
or later, and while this can be harmless, it can also be quite surprising.
Regards,
VZ