[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_GNU_SOURCE and cross compiling
From: |
Bonzini |
Subject: |
Re: AC_GNU_SOURCE and cross compiling |
Date: |
Fri, 18 Apr 2003 23:01:23 +0200 |
> There is no target machine to consider here. If you talk about a target
> machine then you are compiling a compiler that can generate code for a
> different machine than the host. When compiling _with_ a cross-compiler
> then you have the build and the host machine, but all autoconf checks
> still apply to the host.
I think that Tobias meant "build" instead of "host" and "host" instead of
"target", but
his diagnosis is not right anyway.
The host does have to define _GNU_SOURCE because it does have GNU functions --
it is
the test for getline that guesses wrong when cross-compiling; the solution is
to say
that getline is available if GNU functions are available based on the outcome of
AC_GNU_SOURCE.
Paolo