[OpenBIOS] patch: machine dependent config

Maciej W. Rozycki macro at ds2.pg.gda.pl
Fri Jun 7 17:24:20 CEST 2002

On Fri, 7 Jun 2002, Stefan Reinauer wrote:

> Cross compilers is exactly where this stops working. If I cross compile
> for SH1 CPUs using a crosscompiler on Intel x86, my perl nor my gcc will
> never tell me whether my 'long' is 32 or 64bit on the target platform. 
> We probably can't even use this to check for TI mode availability

 Gcc (and about any sane compiler) will do.  Current autoconf is able to
figure sizes of types even if cross-compiling only by building object
files with a target compiler.  A nice sizeof trick is used -- see the
_AC_COMPUTE_INT internal macro.

+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+        e-mail: macro at ds2.pg.gda.pl, PGP key available        +

To unsubscribe: send mail to majordomo at freiburg.linux.de
with 'unsubscribe openbios' in the body of the message
http://www.freiburg.linux.de/OpenBIOS/ - free your system..

More information about the openbios mailing list