summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2010-05-02 23:34:22 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2010-05-02 23:34:22 +0000
commit2f0be7bed428915aeb18090bfbce69841125fcdb (patch)
treebd75ebd0ae524dbfb04c10eea228d44a1bff8a3e /gnu
parent4eec72379c2ff1e435d93b80767efde27189d8a3 (diff)
Use the newly built compiler for bootstrap purposes, more is needed for
actual cross support.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cc/libgcc/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/libgcc/Makefile b/gnu/usr.bin/cc/libgcc/Makefile
index 1a74d632c79..d1caae17bbc 100644
--- a/gnu/usr.bin/cc/libgcc/Makefile
+++ b/gnu/usr.bin/cc/libgcc/Makefile
@@ -1,11 +1,21 @@
# $FreeBSD: src/gnu/lib/libgcc/Makefile,v 1.58.8.1 2009/04/15 03:14:26 kensmith Exp $
-# $OpenBSD: Makefile,v 1.6 2010/05/02 10:05:22 kettenis Exp $
+# $OpenBSD: Makefile,v 1.7 2010/05/02 23:34:21 drahn Exp $
.include <bsd.own.mk>
GCCLIB= ${.CURDIR}/../../../gcc
GCCDIR= ${GCCLIB}/gcc
+.include "../Makefile.tgt"
+
+.if defined(CROSS_TARGET)
+#Building cc for target, CC should already be the cross compiler
+.elif exists(${.CURDIR}/../cc/obj)
+CC=${.OBJDIR}/../cc/cc -B ${.OBJDIR}/../cc1
+.else
+CC=${.CURDIR}/../cc/cc -B ${.CURDIR}/../cc1
+.endif
+
.include "${.CURDIR}/../Makefile.ver"
LIB= gcc