Subject: Re: bi-endian etc/pwd.db
To: =?ISO-8859-1?Q?Jarom=EDr_Dolecek?= <dolecek@ics.muni.cz>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-userlevel
Date: 11/25/2000 13:06:51
On Sat, 25 Nov 2000, Jaromír Dolecek wrote:
: > Anyone against putting:
: >
: > TARGET_ENDIANNESS!= \
: > printf "\#include <machine/endian_machdep.h>\n_BYTE_ORDER\n" | \
: > ${CC} -I${DESTDIR}/usr/include -E - | tail -1
:
: Ah, true :) I was wondering how one can make echo print newline portably
: and forgot printf completely :)
There's an easier solution which is already used for the HAVE_GCC28
definitions (and thus should be reused for uniformity). Just add "; echo"
to the end of the command to add an extra newline. The make(1) program
strips this as whitespace.
--
-- Todd Vierling <tv@wasabisystems.com> * http://www.wasabisystems.com/
-- Speed, stability, security, and support. Wasabi NetBSD: Run with it.