aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/binutils/as/mips-freebsd/Makefile3
-rw-r--r--gnu/usr.bin/binutils/as/powerpc-freebsd/Makefile8
-rw-r--r--gnu/usr.bin/binutils/as/sparc-freebsd/Makefile3
-rw-r--r--gnu/usr.bin/binutils/as/sparc64-freebsd/Makefile3
4 files changed, 15 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/as/mips-freebsd/Makefile b/gnu/usr.bin/binutils/as/mips-freebsd/Makefile
index 7f67166214c3..2546370cbbe7 100644
--- a/gnu/usr.bin/binutils/as/mips-freebsd/Makefile
+++ b/gnu/usr.bin/binutils/as/mips-freebsd/Makefile
@@ -8,6 +8,9 @@ PROG= as
.if ${MACHINE_ARCH} != "mipsel" && ${MACHINE_ARCH} != "mipseb"
NOMAN= 1
BINDIR= /usr/libexec/cross/mips-freebsd
+# If we aren't doing cross-assembling, some operations can be optimized, since
+# byte orders and value sizes don't need to be adjusted.
+CFLAGS+= -DCROSS_COMPILE=1
.endif
.if ${MACHINE_ARCH} == "mipsel"
CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=0
diff --git a/gnu/usr.bin/binutils/as/powerpc-freebsd/Makefile b/gnu/usr.bin/binutils/as/powerpc-freebsd/Makefile
index 877057034e75..d216189c427f 100644
--- a/gnu/usr.bin/binutils/as/powerpc-freebsd/Makefile
+++ b/gnu/usr.bin/binutils/as/powerpc-freebsd/Makefile
@@ -1,12 +1,16 @@
-#
# $FreeBSD$
-#
.include "${.CURDIR}/../Makefile.inc0"
PROG= as
+.if ${TARGET_ARCH} != "powerpc"
NOMAN= 1
BINDIR= /usr/libexec/cross/powerpc-freebsd
+# If we aren't doing cross-assembling, some operations can be optimized, since
+# byte orders and value sizes don't need to be adjusted.
+CFLAGS+= -DCROSS_COMPILE=1
+.endif
SRCS+= obj-elf.c tc-ppc.c
+
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/binutils/as/sparc-freebsd/Makefile b/gnu/usr.bin/binutils/as/sparc-freebsd/Makefile
index 49784f37a09d..cc5e30b17dfa 100644
--- a/gnu/usr.bin/binutils/as/sparc-freebsd/Makefile
+++ b/gnu/usr.bin/binutils/as/sparc-freebsd/Makefile
@@ -8,6 +8,9 @@ PROG= as
.if ${TARGET_ARCH} != "sparc"
NOMAN= 1
BINDIR= /usr/libexec/cross/sparc-freebsd
+# If we aren't doing cross-assembling, some operations can be optimized, since
+# byte orders and value sizes don't need to be adjusted.
+CFLAGS+= -DCROSS_COMPILE=1
.endif
SRCS+= obj-elf.c tc-sparc.c
diff --git a/gnu/usr.bin/binutils/as/sparc64-freebsd/Makefile b/gnu/usr.bin/binutils/as/sparc64-freebsd/Makefile
index 9ee55b616dfc..85abe7d2ee71 100644
--- a/gnu/usr.bin/binutils/as/sparc64-freebsd/Makefile
+++ b/gnu/usr.bin/binutils/as/sparc64-freebsd/Makefile
@@ -8,6 +8,9 @@ PROG= as
.if ${TARGET_ARCH} != "sparc64"
NOMAN= 1
BINDIR= /usr/libexec/cross/sparc64-freebsd
+# If we aren't doing cross-assembling, some operations can be optimized, since
+# byte orders and value sizes don't need to be adjusted.
+CFLAGS+= -DCROSS_COMPILE=1
.endif
SRCS+= obj-elf.c tc-sparc.c