Change the logic here to match Makefile.inc1. Having it in two places

suggests an opportunity for refactoring :)

Submitted by:	nathanw@
This commit is contained in:
Warner Losh 2010-08-24 16:35:26 +00:00
parent dda89c7303
commit 2bef81cf3a

View File

@ -112,7 +112,9 @@ SUBDIR= ${SUBDIR_ORDERED} \
${_bind} \
${_clang}
.if exists(${.CURDIR}/csu/${MACHINE_CPUARCH}-elf)
.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
_csu=csu/${MACHINE_ARCH}-elf
.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}-elf)
_csu=csu/${MACHINE_CPUARCH}-elf
.elif exists(${.CURDIR}/csu/${MACHINE_CPUARCH}/Makefile)
_csu=csu/${MACHINE_CPUARCH}