diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2010-05-02 23:34:22 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2010-05-02 23:34:22 +0000 |
commit | 2f0be7bed428915aeb18090bfbce69841125fcdb (patch) | |
tree | bd75ebd0ae524dbfb04c10eea228d44a1bff8a3e /gnu | |
parent | 4eec72379c2ff1e435d93b80767efde27189d8a3 (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/Makefile | 12 |
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 |