From 2bef81cf3a594d8aabb5471bea46b861952059ae Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 24 Aug 2010 16:35:26 +0000 Subject: Change the logic here to match Makefile.inc1. Having it in two places suggests an opportunity for refactoring :) Submitted by: nathanw@ --- lib/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Makefile b/lib/Makefile index 6f158a4596b7..53248e31659a 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -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} -- cgit v1.2.3