summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils/Makefile.inc0
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/Makefile.inc0
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/Makefile.inc0')
-rw-r--r--gnu/usr.bin/binutils/Makefile.inc05
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.inc0 b/gnu/usr.bin/binutils/Makefile.inc0
index c7445c7..f9b2e63 100644
--- a/gnu/usr.bin/binutils/Makefile.inc0
+++ b/gnu/usr.bin/binutils/Makefile.inc0
@@ -9,11 +9,12 @@
#
VERSION= 2.9.1
+TARGET_ARCH?= ${MACHINE_ARCH}
-.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
+.if ${TARGET_ARCH} == "mipsel" || ${TARGET_ARCH} == "mipseb"
BINUTIL_ARCH=mips
.else
-BINUTIL_ARCH=${MACHINE_ARCH}
+BINUTIL_ARCH=${TARGET_ARCH}
.endif
# RELTOP is the relative path to this point in the source or object
OpenPOWER on IntegriCloud