chessx
chessx copied to clipboard
Allow linking against system libraries via pkg-config
When 'link_pkgconfig' is added to CONFIG, chessx will now use pkg-config to dynamically link against the quazip and zlib libraries installed on the system, rather than bundling quazip or guessing the header file location. Default behavior remains unchanged.
I updated the PR to use the new QuaZip development interface (where we can take advantage of pkgconfig) used in version 1.0 and later. Previous version would work against the older 0.x releases.
Updated to also use pkgconfig for zlib, which is used directly by kzip.cpp
, which I missed before. Also I changed it to just react to the built-in link_pkgconfig
config rather than introducing a new one.
@Isarhamster Any feedback to this and the other PR? I'm currently carrying these as downstream patches in Fedora [1]. It would be nice to have them included in an official release.
[1] https://src.fedoraproject.org/rpms/chessx/tree/rawhide