Subject: Re: cross building under FreeBSD succeccful
To: Marcus Comstedt <marcus@idonex.se>
From: R. Imura <imura@ryu16.org>
List: port-dreamcast
Date: 03/28/2001 17:27:57
On Tue, Mar 27, 2001 at 02:50:14PM +0200, Marcus Comstedt wrote:
> If the compiler emits a .long (rather than an .ualong) that it
> intends to be misaligned, then there is a problem with the compiler
> yes.  Is this the case?  Exactly what .long:s caused the problem, and
> how were they generated?

I got the answer!

type this in your machine (not cross compiling)
% cd /your_source_tree/src/lib/libposix && \
 env CPP=/usr/libexec/cpp make
and if you get "misaligned", it is.

I was setting CPP as "$CC -print-prog-name=cpp", when cross-building,
I should have prepared a wrapper script like /usr/bin/cpp.

Thanks,

- R. Imura