From b41312be09395f8ea578e1a9a74f2eb2c4bda13f Mon Sep 17 00:00:00 2001 From: obrien Date: Mon, 11 Sep 2006 18:07:09 +0000 Subject: [PATCH] Define build 'as' TARGET_BYTES_BIG_ENDIAN if "TARGET_BIG_ENDIAN" is defined. This is needed for bi-sex architectures. --- gnu/usr.bin/binutils/as/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/usr.bin/binutils/as/Makefile b/gnu/usr.bin/binutils/as/Makefile index 9bf4880faf2..a5473a77e9b 100644 --- a/gnu/usr.bin/binutils/as/Makefile +++ b/gnu/usr.bin/binutils/as/Makefile @@ -35,6 +35,9 @@ CFLAGS+= -DDEFAULT_ARCH=\"v9-64\" .else CFLAGS+= -DDEFAULT_ARCH=\"${BINUTILS_ARCH}\" .endif +.if defined(TARGET_BIG_ENDIAN) +CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=1 +.endif CFLAGS+= -DTARGET_CPU=\"${BINUTILS_ARCH}\" CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_TUPLE}\" CFLAGS+= -DTARGET_ALIAS=\"${TARGET_TUPLE}\" -- 2.45.0