summaryrefslogtreecommitdiff
path: root/Makefile.cross
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-11-13 20:51:58 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-11-13 20:51:58 +0000
commit2157eb848fb126690ed6405c6965f01badf77768 (patch)
tree092404a5e880aaa6fb5fedf76ab5532478935947 /Makefile.cross
parent3f7b39e7c5d75a0a9209cc3f2002bddfa434b648 (diff)
Make COMPILER_VERSION a definitive assignment in there, for it to override
<bsd.own.mk>. Allows cross-gcc to be built on a host using a different compiler version than the target.
Diffstat (limited to 'Makefile.cross')
-rw-r--r--Makefile.cross8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.cross b/Makefile.cross
index 2c70d8cadaf..67809f45f7b 100644
--- a/Makefile.cross
+++ b/Makefile.cross
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.cross,v 1.56 2012/08/23 06:22:51 deraadt Exp $
+# $OpenBSD: Makefile.cross,v 1.57 2012/11/13 20:51:57 miod Exp $
cross-tools: cross-includes cross-binutils cross-gcc cross-lib
cross-distrib: cross-tools cross-bin cross-share cross-sys cross-etc-root-var
@@ -92,11 +92,11 @@ OLD_BINUTILS_ARCH=m68k m88k vax
.for _arch in ${TARGET_ARCH}
.if !empty(GCC2_ARCH:M${_arch})
-COMPILER_VERSION?=gcc2
+COMPILER_VERSION=gcc2
.elif !empty(GCC4_ARCH:M${_arch})
-COMPILER_VERSION?=gcc4
+COMPILER_VERSION=gcc4
.else
-COMPILER_VERSION?=gcc3
+COMPILER_VERSION=gcc3
.endif
.if !empty(BINUTILS217_ARCH:M${_arch})