From 8bd4a7f02f572060c4c70c3a32f43f357583c697 Mon Sep 17 00:00:00 2001 From: imp 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/Makefile') diff --git a/lib/Makefile b/lib/Makefile index 6f158a4..53248e3 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.1