[Buildroot] [PATCH 1/3 v6] package/gobject-introspection: fix host-linking

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Mar 15 21:02:01 UTC 2020


On Sun, 15 Mar 2020 16:33:19 +0100
"Yann E. MORIN" <yann.morin.1998 at free.fr> wrote:

> -# Disable introspection data on the host, as it is not needed and
> -# the package will attempt to use the systems libglib2 which will fail
> -# if the systems libglib2 version is older than 2.60.
> -HOST_GOBJECT_INTROSPECTION_CONF_OPTS = \
> -	-Dbuild_introspection_data=false
> +# When building, gobject-introspection uses tools/g-ir-scanner to build several
> +# .gir and .typelib files. g-ir-scanner does not use LDFLAGS, and by default,
> +# links to the system-installed libglib2 path. To remedy this issue, defining
> +# LD_LIBRARY_PATH forces g-ir-scanner to use our host installed libglib2 files.
> +HOST_GOBJECT_INTROSPECTION_NINJA_ENV += \
> +	LD_LIBRARY_PATH="$(if $(LD_LIBRARY_PATH),$(LD_LIBRARY_PATH):)$(HOST_DIR)/lib"

So there's really no other way? No way to convince this thing to use
-Wl,-rpath,$(HOST_DIR)/lib when building host binaries ?

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



More information about the buildroot mailing list