[PATCH] fix cross builds of sim/ppc
Daniel Jacobowitz
drow@false.org
Fri Nov 13 23:04:00 GMT 2009
On Fri, Nov 13, 2009 at 01:55:20PM -0800, Nathan Froyd wrote:
> The patch below fixes a cross build problem with sim/ppc. sim/ppc
> builds various tools which are then used to generate source files for
> the simulator. The problem is that as things currently stand, those
> build-machine tools use a config.h generated for the host machine. This
> mismatch can cause the build to fail, depending on the differences
> between headers.
>
> The patch fixes this by detecting the cross-compilation case and
> generating a build-config.h file that correctly reflects the
> idiosyncrasies of the build machine. build-config.h is then included in
> the necessary source files. The logic is lifted straight from gcc's own
> makefiles.
>
> Tested with cross to powerpc-eabi for i686-pc-linux-gnu and i686-mingw32
> hosts. OK to commit?
OK.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list