Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/x11/Xserver set endianness in for Xserver libs.
details: https://anonhg.NetBSD.org/src/rev/6d9ed2f73b75
branches: trunk
changeset: 556732:6d9ed2f73b75
user: rtr <rtr%NetBSD.org@localhost>
date: Fri Dec 26 08:23:30 2003 +0000
description:
set endianness in for Xserver libs.
diffstat:
x11/Xserver/Makefile.serverlib | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r ba823a86493d -r 6d9ed2f73b75 x11/Xserver/Makefile.serverlib
--- a/x11/Xserver/Makefile.serverlib Fri Dec 26 08:22:10 2003 +0000
+++ b/x11/Xserver/Makefile.serverlib Fri Dec 26 08:23:30 2003 +0000
@@ -1,15 +1,27 @@
-# $NetBSD: Makefile.serverlib,v 1.2 2003/12/21 03:07:01 rtr Exp $
+# $NetBSD: Makefile.serverlib,v 1.3 2003/12/26 08:23:30 rtr Exp $
+
NOLINT= 1
NOPIC= 1
NOPROFILE= 1
+.include <bsd.endian.mk>
+
.if ${XMODULEDIR:U} == ""
libinstall::
.endif
-CPPFLAGS+= ${X11FLAGS.SERVER}
+.if ${TARGET_ENDIANNESS} == "1234"
+X_BYTE_ORDER=X_LITTLE_ENDIAN
+.elif ${TARGET_ENDIANNESS} == "4321"
+X_BYTE_ORDER=X_BIG_ENDIAN
+.else
+X_BYTE_ORDER=0
+.endif
+
+CPPFLAGS+= ${X11FLAGS.SERVER} -DX_BYTE_ORDER=${X_BYTE_ORDER}
.if defined(XMODULEDIR)
CPPFLAGS+= ${X11FLAGS.LOADABLE}
.endif
+
Home |
Main Index |
Thread Index |
Old Index