summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils/libbinutils
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>1999-12-17 15:50:45 +0000
committermarcel <marcel@FreeBSD.org>1999-12-17 15:50:45 +0000
commitb05cb674428806312a36cec145305b473eaa6ac5 (patch)
tree308a4b228706c155b34940c4bf96e41954fd17d1 /gnu/usr.bin/binutils/libbinutils
parentc926be6ea7337529b70771aa567e9d10a6238901 (diff)
downloadFreeBSD-src-b05cb674428806312a36cec145305b473eaa6ac5.zip
FreeBSD-src-b05cb674428806312a36cec145305b473eaa6ac5.tar.gz
s/MACHINE_ARCH/TARGET_ARCH/g
The target machine is represented by TARGET_ARCH. MACHINE_ARCH always represents the host machine. When TARGET_ARCH is not defined, it is assumed to be equal to MACHINE_ARCH. This means that we're building a native toolset by default. We're creating cross-compilation tools when MACHINE_ARCH != TARGET_ARCH. TARGET_ARCH is defined when building binutils as part of the bootstrap build and is set to reflect the architecture we're currently cross- building. With this change binutils is ready for cross-building.
Diffstat (limited to 'gnu/usr.bin/binutils/libbinutils')
-rw-r--r--gnu/usr.bin/binutils/libbinutils/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils/libbinutils/Makefile b/gnu/usr.bin/binutils/libbinutils/Makefile
index b6b4fa7..c6ee50c 100644
--- a/gnu/usr.bin/binutils/libbinutils/Makefile
+++ b/gnu/usr.bin/binutils/libbinutils/Makefile
@@ -9,12 +9,12 @@
LIB= binutils
SRCS+= arlex.l arparse.y arsup.c bucomm.c debug.c filemode.c \
ieee.c rdcoff.c rddbg.c stabs.c wrstabs.c version.c
-.if ${MACHINE_ARCH} == "mipseb"
+.if ${TARGET_ARCH} == "mipseb"
CFLAGS+= -DTARGET=\"elf32-bigmips\"
-.elif ${MACHINE_ARCH} == "mipsel"
+.elif ${TARGET_ARCH} == "mipsel"
CFLAGS+= -DTARGET=\"elf32-littlemips\"
.else
-CFLAGS+= -DTARGET=\"${MACHINE_ARCH}-unknown-freebsdelf\"
+CFLAGS+= -DTARGET=\"${TARGET_ARCH}-unknown-freebsdelf\"
.endif
CFLAGS+= -DVERSION=\"${VERSION}\"
CFLAGS+= -I${SRCDIR}/binutils
OpenPOWER on IntegriCloud