diff options
author | jb <jb@FreeBSD.org> | 1999-11-06 21:13:47 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1999-11-06 21:13:47 +0000 |
commit | b1941ed9e5015451daaf44d4657be7917edf526f (patch) | |
tree | 67d4fdb50ea9a4d5edae3a4c8f644903051839ef /gnu | |
parent | 86e5daf08b6fcf3337ec782ead8e327d991c29c5 (diff) | |
download | FreeBSD-src-b1941ed9e5015451daaf44d4657be7917edf526f.zip FreeBSD-src-b1941ed9e5015451daaf44d4657be7917edf526f.tar.gz |
Change CROSS_TOOLS to CROSS_ARCH because that makes more sense.
Allow for the case where the host architecture might also be listed
in CROSS_ARCH, so don't do things twice. This situation can arise if you
want NT support in binutils (CROSS_ARCH=i386 CROSS_FORMAT=winnt).
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/Makefile.inc0 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.inc0 b/gnu/usr.bin/binutils/Makefile.inc0 index 4cd487b..c7445c7 100644 --- a/gnu/usr.bin/binutils/Makefile.inc0 +++ b/gnu/usr.bin/binutils/Makefile.inc0 @@ -40,7 +40,13 @@ CFLAGS+= -I${SRCDIR}/include .PATH: ${.CURDIR}/${BINUTIL_ARCH} .endif -ARCHS= ${BINUTIL_ARCH} ${CROSS_TOOLS} +ARCHS= ${BINUTIL_ARCH} + +.for _arch in ${CROSS_ARCH} +.if (${ARCHS:R:M${_arch:R}} == "") +ARCHS+=$(_arch) +.endif +.endfor .for _arch in ${ARCHS} .if exists(${.CURDIR}/Makefile.${_arch}) |