summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2006-09-11 18:07:09 +0000
committerobrien <obrien@FreeBSD.org>2006-09-11 18:07:09 +0000
commitb41312be09395f8ea578e1a9a74f2eb2c4bda13f (patch)
tree854beb41af7f47759eb3972fdb9a29c50e6e4033
parent8e603b51378f5816359019ec786865a8ff6d4bd1 (diff)
downloadFreeBSD-src-b41312be09395f8ea578e1a9a74f2eb2c4bda13f.zip
FreeBSD-src-b41312be09395f8ea578e1a9a74f2eb2c4bda13f.tar.gz
Define build 'as' TARGET_BYTES_BIG_ENDIAN if "TARGET_BIG_ENDIAN" is defined.
This is needed for bi-sex architectures.
-rw-r--r--gnu/usr.bin/binutils/as/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/as/Makefile b/gnu/usr.bin/binutils/as/Makefile
index 9bf4880..a5473a7 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}\"
OpenPOWER on IntegriCloud