[PATCH bzip2 6/6] install a pkg-config file with instructions for linking to libbz2
Eli Schwartz
eschwartz93@gmail.com
Thu Jun 9 05:52:21 GMT 2022
On 6/3/22 1:09 AM, ~eschwartz wrote:
> From: Eli Schwartz <eschwartz93@gmail.com>
>
> A pkg-config file is necessary in order to robustly communicate across
> build systems that bz2 is installed, *where* it is installed, and the
> correct CFLAGS / LDFLAGS to use in order to compile and link against it.
Some distros already provide one of these, so it's currently a bit
inconsistent how to look for the library. As a result, there is software
in the wild that probes for the library name, and fails if the library
is installed to a custom prefix, and other software that checks for
pkg-config, and fails on distros that don't provide their own bzip2.pc
In general it's good to have.
And particularly, it makes it much easier to detect bzip2 as "a
dependency" instead of "manual linker flags" from the Meson build
system, which can then toggle between multiple "dependency" providers
via e.g.
https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section
--
Eli Schwartz
More information about the Bzip2-devel
mailing list