The lossage stems from the fact that NetBSD uses i386 as
MACHINE, i386 as MACHINE_ARCH, and i486 as MACHINE_GNU_ARCH.
We want to follow the MACHINE_GNU_ARCH since it actually makes sense.
RUMPMAKE=$(pwd)/${RUMPTOOLS}/rumpmake
- MACHINE_ARCH=$(${RUMPMAKE} -f /dev/null -V '${MACHINE_ARCH}')
- [ -n "${MACHINE_ARCH}" ] || die could not figure out target machine arch
-
# this is slightly ridiculous
echo ${MACHINE_ARCH} > ${RROBJ}/.machine_arch