Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/pcc/lib/libpcc provide endian information to li...
details: https://anonhg.NetBSD.org/src/rev/63b32b2c7b8d
branches: trunk
changeset: 765220:63b32b2c7b8d
user: plunky <plunky%NetBSD.org@localhost>
date: Sun May 22 12:01:26 2011 +0000
description:
provide endian information to libpcc
(shame this doesn't use the same TARGET_XXX_ENDIAN
definition as the rest of the sources)
diffstat:
external/bsd/pcc/lib/libpcc/Makefile | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r a47b8699b1fe -r 63b32b2c7b8d external/bsd/pcc/lib/libpcc/Makefile
--- a/external/bsd/pcc/lib/libpcc/Makefile Sun May 22 11:53:46 2011 +0000
+++ b/external/bsd/pcc/lib/libpcc/Makefile Sun May 22 12:01:26 2011 +0000
@@ -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>
Home |
Main Index |
Thread Index |
Old Index