Subject: Re: CVS commit: basesrc
To: Tim Rightnour <root@garbled.net>
From: Simon Burge <simonb@wasabisystems.com>
List: source-changes
Date: 11/11/2000 03:36:22
Tim Rightnour wrote:

> On 10-Nov-00 Simon Burge wrote:
>
> > The proper solution is of course to move the {s,}pwd.db files to an
> > MI format, whilst maintaining backward compatibility somehow (for
> > statically compiled binaries)...
> 
> While I do agree with you on that point.. It does seem like there should be a
> way to determine the endianess of the machine you are attempting to build for.

Is something like:

	printf "#include <machine/endian_machdep.h>\n_BYTE_ORDER\n" | \
	    ${CC} -I${DESTDIR}/usr/include -E - | tail -1

better (for now)?  Works on pmax, alpha, sparc and i386 but I can't test
on any native ppc or m68k systems.  It does print the right thing for a
powerpc cross-compile run from alpha.

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Sales, Support and Service:  http://www.wasabisystems.com/