summaryrefslogtreecommitdiff
path: root/Makefile.cross
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2005-01-19 18:31:35 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2005-01-19 18:31:35 +0000
commitdcc8d08ed794e508fc2b05feba216d5c38b81bf2 (patch)
tree3ae90c2c8eefa40c6c51af9571b001ff79e836c3 /Makefile.cross
parent2ea6f7c1ef0a9eeef6ecc65f2bbdd8d83a321bc4 (diff)
Unbreak cross-tools by providing TARGET_ARCH in include target
to get right config.status file for binutils and gcc. ok mickey@
Diffstat (limited to 'Makefile.cross')
-rw-r--r--Makefile.cross4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.cross b/Makefile.cross
index 216c70d658b..c399d25e684 100644
--- a/Makefile.cross
+++ b/Makefile.cross
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.cross,v 1.3 2005/01/12 00:06:28 espie Exp $
+# $OpenBSD: Makefile.cross,v 1.4 2005/01/19 18:31:34 grange Exp $
cross-tools: cross-includes cross-binutils cross-gcc cross-lib
cross-distrib: cross-tools cross-bin cross-etc-root-var
@@ -99,9 +99,11 @@ ${CROSSINCLUDES}: ${CROSSOBJ}
@(cd ${.CURDIR}/include && \
MACHINE=${TARGET} MACHINE_ARCH=${TARGET_ARCH} \
MAKEOBJDIR=obj.${MACHINE}.${TARGET} \
+ TARGET_ARCH=${TARGET_ARCH} \
${MAKE} prereq && \
MACHINE=${TARGET} MACHINE_ARCH=${TARGET_ARCH} \
MAKEOBJDIR=obj.${MACHINE}.${TARGET} \
+ TARGET_ARCH=${TARGET_ARCH} \
${MAKE} DESTDIR=${CROSSDIR} includes)
@touch ${CROSSINCLUDES}