aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/as
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-05-22 08:25:40 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-05-22 08:25:40 +0000
commit7994fa95cd87f2448909677c93d43b651b81c529 (patch)
tree60aabcd2a5b6c2ce4bdf64add932d62ee72a982c /gnu/usr.bin/binutils/as
parentbcff338667ea1600d2ebd1be0ae8d7c6a4d9e91b (diff)
downloadsrc-7994fa95cd87f2448909677c93d43b651b81c529.tar.gz
src-7994fa95cd87f2448909677c93d43b651b81c529.zip
Conditionally define "CROSS_COMPILE" here.
Notes
Notes: svn path=/head/; revision=60780
Diffstat (limited to 'gnu/usr.bin/binutils/as')
-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