cross compiling
Dan Nicholson
dbn.lists at gmail.com
Thu Dec 20 11:35:51 PST 2007
On Dec 20, 2007 11:24 AM, Stepan Kasal <skasal at redhat.com> wrote:
> Hello Alexander.
>
> On Thu, Dec 20, 2007 at 09:16:34PM +0300, Alexander Vasiliev wrote:
> > checking for extra flags to get ANSI library prototypes... configure:
> > error: cannot run test program while cross compiling
> > See `config.log' for more details.
> > configure: error: ./configure failed for glib-1.2.8"
>
> This seems to be a bug in pkg-config/glib-1.2.8/configure.in .
> I'll look at the details in due time and report here.
> Could you plese tell me which version of pkg-config you were
> building?
>
> Generally speaking:
> This message indicates that configure.ac (or configure.in) called
> (directly or indirectly) the macro AC_RUN_IFELSE (or AC_TRY_RUN)
> without the fourth parameter, which defines the result for the cross
> compile case, which, naturally, does not allow configure to execute
> the just-built test program. This is described in:
> http://www.gnu.org/software/autoconf/manual/html_node/Runtime.html
I just had a peek (with pkg-config HEAD), and it's AC_TRY_RUN, and
there's quite a few of them. It would be a pretty involved patch, but
worth the effort, IMO.
--
Dan
More information about the pkg-config
mailing list