[systemd-devel] [PATCH] build: generate pkg-config files during configure

Umut Tezduyar Lindskog umut at tezduyar.com
Thu Mar 12 00:16:03 PDT 2015


What does this fix Jeff, could you please explain?

On Tue, Mar 10, 2015 at 7:04 PM, Jeff Waugh <jdub at bethesignal.org> wrote:
> Generate pkg-config files during configure as God (Havoc) intended. This fixes
> all of systemd's pkg-config files when cross-compiling (and possibly other use
> cases).
>
> (Note: I might've missed some things to tidy up in Makefile.am, but not 100%
> sure.)
>
> Signed-off-by: Jeff Waugh <jdub at bethesignal.org>
> ---
>  Makefile.am  |  3 ---
>  configure.ac | 10 ++++++++++
>  2 files changed, 10 insertions(+), 3 deletions(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index 3539e03..d2ebc81 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -6442,9 +6442,6 @@ man/%: man/%.in
>  sysctl.d/%: sysctl.d/%.in
>         $(SED_PROCESS)
>
> -%.pc: %.pc.in
> -       $(SED_PROCESS)
> -
>  %.conf: %.conf.in
>         $(SED_PROCESS)
>
> diff --git a/configure.ac b/configure.ac
> index 29111f5..21b8008 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1510,6 +1510,16 @@ AC_CONFIG_FILES([
>          docs/libudev/version.xml
>          docs/gudev/Makefile
>          docs/gudev/version.xml
> +        src/libudev/libudev.pc
> +        src/compat-libs/libsystemd-id128.pc
> +        src/compat-libs/libsystemd-daemon.pc
> +        src/compat-libs/libsystemd-login.pc
> +        src/compat-libs/libsystemd-journal.pc
> +        src/libsystemd/sd-id128/libsystemd-id128.pc
> +        src/libsystemd/libsystemd.pc
> +        src/udev/udev.pc
> +        src/core/systemd.pc
> +        src/gudev/gudev-1.0.pc
>  ])
>
>  AC_OUTPUT
> --
> 1.9.1
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list