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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211759

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}