ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] Disabling glib package test - Freescale M54418


From: Francois Bouchard
Subject: Re: [Ltib] Disabling glib package test - Freescale M54418
Date: Wed, 3 Apr 2013 15:30:42 -0400

Hi Stuart,

Having read a lot on the subject, it is indeed hard to cross-compile module pkg-config.  I have read that since pkg-config ver 0.28, glib must be built before it, and by setting GLIB_FLAGS and GLIB_LIBS, pkg-config won't be used.

But there is differences in the options we have for glib (--with-internal-glib which is the one bundled with it, and --with-installed-glib)

So my guess is that for pkg-config, as we build glib first, the option passed to ./configure is --with-installed-glib, but then again GLIB_LIBS and GLIB_FLAGS must be assigned.  I'm there now.

But, again here we are cross-compiling so what it is written on the net doesn't always apply.

Francois




2013/3/28 Stuart Hughes <address@hidden>
Hi Francios,

In the new package you are trying to add you will need to add a patch to
change the configure script so that it does not try to run the test that
is failing.

As the output is showing, the test it is trying to do won't work when
cross compiling.  This is fairly common and you can check in other
packages (sorry I can't recall) that have similar changes applied.

If you're lucky sometimes a package has an option to configure that will
make it work for cross compiling.  You will need to google to find out
if this applied for your package (what is it?)

Regards, Stuart

On 27/03/13 19:31, Francois Bouchard wrote:
> Hi,
>
> We are trying since a couple of days to add some package to litb and it
> basically won't compile with package pkg-config.  We build it using
> --with-internal-glib
>
> The following error occurs when using --with-internal-glib flag to
> configure pkg-config:
> (.....)
> checking for growing stack pointer... configure: error: in
> `/ltib/ltib-modelo-20100709/rpm/BUILD/pkg-config-0.28/glib':
> *configure: error: cannot run test program while cross compiling*
> See `config.log' for more details
> configure: error: ./configure failed for glib
>
> Now from where can you disable the test program, in which script?
>
> Thanks,
> Francois
>
>
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/ltib
>


reply via email to

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