[systemd-devel] [PATCH] build: generate pkg-config files during configure
Jeff Waugh
jdub at bethesignal.org
Thu Mar 12 00:27:14 PDT 2015
On Thu, Mar 12, 2015 at 6:16 PM, Umut Tezduyar Lindskog
<umut at tezduyar.com> wrote:
> What does this fix Jeff, could you please explain?
Here's the relevant part of a pkg-config file produced during make:
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include
Versus during configure:
prefix=/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Which disproportionately affects cross-compiling and similar build situations.
OpenWrt includes an equivalent change for kmod (which Lucas mentioned
as I've submitted it upstream), and without an upstream change will
have to carry one for systemd too.
Finally, a supporting appeal to authority: If you check GNOME-land,
practically all pkg-config files are generated at configure time. :-)
More information about the systemd-devel
mailing list