diff --git a/Makefile.inc1 b/Makefile.inc1 index 67bfcfe1ccdb..5b0b5b2e07e0 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -107,7 +107,11 @@ SUPFLAGS?= -g -L 2 -P - MAKEOBJDIRPREFIX?= /usr/obj BUILD_ARCH!= sysctl -n hw.machine_arch +.if ${BUILD_ARCH} == ${MACHINE_ARCH} +OBJTREE= ${MAKEOBJDIRPREFIX} +.else OBJTREE= ${MAKEOBJDIRPREFIX}/${MACHINE_ARCH} +.endif WORLDTMP= ${OBJTREE}${.CURDIR}/${BUILD_ARCH} STRICTTMPPATH= ${WORLDTMP}/bin:${WORLDTMP}/usr/bin TMPPATH= ${STRICTTMPPATH}:${PATH}