Subject: CVS commit: src/share/mk
To: None <source-changes@NetBSD.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 07/27/2003 11:16:31
Module Name:	src
Committed By:	lukem
Date:		Sun Jul 27 11:16:30 UTC 2003

Modified Files:
	src/share/mk: bsd.endian.mk

Log Message:
Ensure the first word of ${CC} exists before attempting to invoke ${CC}
to determine TARGET_ENDIANNESS.

This should fix problem reported privately by Matt Green <mrg@>.

This uses  exists(${CC:ts::C/:.*$//})  as we don't expect the command name to
contain `:'.  (The ":ts" trick is from a discussion with Simon Gerraty <sjg@>.)


To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 src/share/mk/bsd.endian.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.