[Buildroot] [PATCH 1/1] package/gobject-introspection: fix host version of .pc file for wrapper
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sat May 2 12:32:43 UTC 2020
On Sat, 2 May 2020 00:04:35 -0600
James Hilliard <james.hilliard1 at gmail.com> wrote:
> diff --git a/package/gobject-introspection/gobject-introspection.mk b/package/gobject-introspection/gobject-introspection.mk
> index eefb2c83f7..d98eaf945a 100644
> --- a/package/gobject-introspection/gobject-introspection.mk
> +++ b/package/gobject-introspection/gobject-introspection.mk
> @@ -136,6 +136,36 @@ define GOBJECT_INTROSPECTION_INSTALL_WRAPPERS
> endef
> GOBJECT_INTROSPECTION_POST_INSTALL_STAGING_HOOKS += GOBJECT_INTROSPECTION_INSTALL_WRAPPERS
>
> +define HOST_GOBJECT_INTROSPECTION_INSTALL_WRAPPERS
> + # Set prefix to /usr because pkg-config appends the sysroot directory
> + $(SED) "s%^prefix=.*%prefix=\/usr%g" \
> + $(HOST_DIR)/usr/lib/pkgconfig/gobject-introspection-1.0.pc
No, the host variant of pkg-config should not append the sysroot
directory. If it does, then it is wrong.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list