summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-03-27 19:35:09 +0000
committerru <ru@FreeBSD.org>2005-03-27 19:35:09 +0000
commit0a3b4d40de2e185f31aea0754ffef7b4537b5ea4 (patch)
treec99120c7b17f80f818a201c3464a4044b9f45ff8 /Makefile.inc1
parent4a728bf655e4f3f27f7868459170d0087d5e7655 (diff)
downloadFreeBSD-src-0a3b4d40de2e185f31aea0754ffef7b4537b5ea4.zip
FreeBSD-src-0a3b4d40de2e185f31aea0754ffef7b4537b5ea4.tar.gz
Fix AMD64 cross-builds when WITH_LIB32 is defined.
(Initially spotted by kris@ on RELENG_5.)
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc18
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index b10bbde..eb5f56b 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -205,7 +205,7 @@ WMAKEENV= ${CROSSENV} \
PATH=${TMPPATH}
WMAKE= ${WMAKEENV} ${MAKE} -f Makefile.inc1 DESTDIR=${WORLDTMP}
-.if ${MACHINE_ARCH} == "amd64"
+.if ${TARGET_ARCH} == "amd64"
# 32 bit world
LIB32TMP= ${OBJTREE}${.CURDIR}/lib32
@@ -382,7 +382,7 @@ everything:
@echo ">>> stage 4.4: building everything"
@echo "--------------------------------------------------------------"
${_+_}cd ${.CURDIR}; ${WMAKE} par-all
-.if ${MACHINE_ARCH} == "amd64"
+.if ${TARGET_ARCH} == "amd64"
build32:
@echo
@echo "--------------------------------------------------------------"
@@ -454,7 +454,7 @@ WMAKE_TGTS+= _cleanobj _obj _build-tools
WMAKE_TGTS+= _cross-tools
.endif
WMAKE_TGTS+= _includes _libraries _depend everything
-.if ${MACHINE_ARCH} == "amd64" && defined(WITH_LIB32)
+.if ${TARGET_ARCH} == "amd64" && defined(WITH_LIB32)
WMAKE_TGTS+= build32
.endif
@@ -540,7 +540,7 @@ reinstall: ${SPECIAL_INSTALLCHECKS}
@echo ">>> Installing everything"
@echo "--------------------------------------------------------------"
${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install
-.if ${MACHINE_ARCH} == "amd64" && defined(WITH_LIB32)
+.if ${TARGET_ARCH} == "amd64" && defined(WITH_LIB32)
${_+_}cd ${.CURDIR}; ${MAKE} -f Makefile.inc1 install32
.endif
OpenPOWER on IntegriCloud