Subject: Re: CVS commit: basesrc
To: Todd Vierling <tv@wasabisystems.com>
From: Jaromír Dolecek <dolecek@ibis.cz>
List: tech-toolchain
Date: 11/14/2000 14:28:54
Todd Vierling wrote:
> For NetBSD (and most other 4.4BSD based) targets,
> 
> ===== CUT - endian-test.i =====
> #include <machine/endian.h>
> #if BYTE_ORDER == BIG_ENDIAN
> #error big endian
> #endif
> ===== CUT - endian-test.i =====
> 
> then do:
> 
>     if ${CC} -E endian-test.i >/dev/null 2>&1; then
>         [...little-endian...]
>     else
>         [...big-endian...]
>     fi

Would it be desirable to put this into basesrc/etc/endian-test.i
and add the check to Makefile ? Or is it better to add appropriate flag
to individual basesrc/etc/etc.*/Makefile.inc ?

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
@@@@  Wanna a real operating system ? Go and get NetBSD, damn!  @@@@