Dag-Erling Smørgrav <d...@des.no> writes:
> Ian Lepore <i...@freebsd.org> writes:
> > That doesn't sound right... what if you're doing a cross-build/install?
> My thoughts exactly, but judging from the rest of the Makefile, the
> correct variable is MACHINE_ARCH, not TARGET_ARCH.

This (in Makefile.inc1) is why it works:

CROSSENV=       MAKEOBJDIRPREFIX=${OBJTREE} \
                MACHINE_ARCH=${TARGET_ARCH} \
                MACHINE=${TARGET} \
                CPUTYPE=${TARGET_CPUTYPE}
# ...
distrib-dirs distribution:
        cd ${.CURDIR}/etc; ${CROSSENV} PATH=${TMPPATH} ${MAKE} \
            ${IMAKE_INSTALL} ${IMAKE_MTREE} METALOG=${METALOG} ${.TARGET}

although I would have written it differently:

distrib-dirs distribution:
        (cd ${.CURDIR}/etc && ${CROSSENV} PATH=${TMPPATH} ${MAKE} \
            ${IMAKE_INSTALL} ${IMAKE_MTREE} METALOG=${METALOG} ${.TARGET})

but that's a nit.

DES
-- 
Dag-Erling Smørgrav - d...@des.no
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to