Module Name: src Committed By: plunky Date: Sun May 22 12:01:26 UTC 2011
Modified Files: src/external/bsd/pcc/lib/libpcc: Makefile Log Message: provide endian information to libpcc (shame this doesn't use the same TARGET_XXX_ENDIAN definition as the rest of the sources) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/bsd/pcc/lib/libpcc/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/pcc/lib/libpcc/Makefile diff -u src/external/bsd/pcc/lib/libpcc/Makefile:1.3 src/external/bsd/pcc/lib/libpcc/Makefile:1.4 --- src/external/bsd/pcc/lib/libpcc/Makefile:1.3 Wed Jan 20 11:45:55 2010 +++ src/external/bsd/pcc/lib/libpcc/Makefile Sun May 22 12:01:26 2011 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2010/01/20 11:45:55 plunky Exp $ +# $NetBSD: Makefile,v 1.4 2011/05/22 12:01:26 plunky Exp $ .include <bsd.init.mk> @@ -15,4 +15,12 @@ COPTS.ssp.c+= -Wno-error +.if ${TARGET_ENDIANNESS} == "1234" +CPPFLAGS+= -D__LITTLE_ENDIAN__ +.elif ${TARGET_ENDIANNESS} == "4321" +CPPFLAGS+= -D__BIG_ENDIAN__ +.else +ERROR!= echo "ERROR: Unknown TARGET_ENDIANNESS" >&2;echo +.endif + .include <bsd.lib.mk>