Don't add MACHINE_ARCH to MAKEOBJDIRPREFIX when not cross-building.
This should fix make release. Reported by: jhay, phk
This commit is contained in:
parent
b0481fa219
commit
42703df3e0
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user