[Buildroot] [PATCH 1/1] package/pkg-meson.mk: set correct pkgconfig for native dependencies

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Apr 28 07:10:22 UTC 2020


On Tue, 28 Apr 2020 08:50:43 +0200
Arnout Vandecappelle <arnout at mind.be> wrote:

> On 28/04/2020 07:22, Thomas Petazzoni wrote:
> > +++ b/package/pkg-meson.mk
> > @@ -87,6 +87,7 @@ define $(2)_CONFIGURE_CMDS
> >  		--default-library=$(if $(BR2_STATIC_LIBS),static,shared) \
> >  		--buildtype=$(if $(BR2_ENABLE_DEBUG),debug,release) \
> >  		--cross-file=$$($$(PKG)_SRCDIR)/build/cross-compilation.conf \
> > +		-Dbuild.pkg_config_path=$$(HOST_DIR)/lib/pkgconfig \  
> 
>  This can't be right. Here you're setting the pkg_config_path to the one for
> native build. It may work in the specific case of wayland-scanner where you
> actually want the native one, but it will break anything that requires the cross
> package config.

Isn't the "build." scoping of that property going to make it apply only
for the native parts of the build ?

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list