Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/3 v6] package/gobject-introspection: fix host-linking
Date: Sun, 15 Mar 2020 22:02:01 +0100	[thread overview]
Message-ID: <20200315220201.60ffcbc5@windsurf> (raw)
In-Reply-To: <ccda32dbb7d04471b987c0b8bed21a2b2c7544ed.1584286382.git.yann.morin.1998@free.fr>

On Sun, 15 Mar 2020 16:33:19 +0100
"Yann E. MORIN" <yann.morin.1998@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

  parent reply	other threads:[~2020-03-15 21:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-15 15:33 [Buildroot] [PATCH 0/3 v6] package/gobject-introspection: misc fixes (branch yem/goi-fixes) Yann E. MORIN
2020-03-15 15:33 ` [Buildroot] [PATCH 1/3 v6] package/gobject-introspection: fix host-linking Yann E. MORIN
2020-03-15 16:35   ` Adam Duskett
2020-03-15 21:02   ` Thomas Petazzoni [this message]
2020-03-15 15:33 ` [Buildroot] [PATCH 2/3 v6] package/gobject-introspection: export variables in g-ir-scanner Yann E. MORIN
2020-03-15 16:35   ` Adam Duskett
2020-03-15 15:33 ` [Buildroot] [PATCH 3/3 v6] package/meson: determine g-ir-scanner and g-ir-compiler paths from pkgconfig Yann E. MORIN
2020-03-15 16:35   ` Adam Duskett
2020-03-15 17:03 ` [Buildroot] [PATCH 0/3 v6] package/gobject-introspection: misc fixes (branch yem/goi-fixes) Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200315220201.60ffcbc5@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox