[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gub linux cross build rpath/relink problem

From: Ralf Wildenhues
Subject: Re: gub linux cross build rpath/relink problem
Date: Wed, 1 Sep 2010 21:43:25 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

Hello Jan,

thanks for the bug report.

* Jan Nieuwenhuizen wrote on Sun, Aug 29, 2010 at 02:58:56PM CEST:
> As promised, here's a log with recipe how to reproduce
> the rpath/relink problem (building glib).
> git clone http://github.com/janneke/gub.git
> cd gub
> git checkout ebd4605  # gub workarounds disabled
> bin/gub --verbose linux-x86::glib
> Upon linking libgio-2.0.la, gobject is included from
>    ../gobject/libgobject-2.0.la
> Then, upon relinking, -L /usr/lib -lgobject-2.0 is used, which fails
> of course.
> Everything works fine without relinking for us as we are avoiding the
> hardcoded, absolute /usr/lib rpath and use a relative -rpath instead.

I'm actually hoping that the recent merge of the sysroot branch allows
to avoid this issue, albeit probably not without some adaptation from
gub or the user.  The idea is that you should be passing --with-sysroot
information so that the .la file will have '=/usr/lib' (yes, including
the equals sign) as libdir, and that should fix relinking.

It would be good if somebody could verify this to be the case; I do not
currently have the resources to try out gub.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]