aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2010-08-24 16:35:26 +0000
committerWarner Losh <imp@FreeBSD.org>2010-08-24 16:35:26 +0000
commit2bef81cf3a594d8aabb5471bea46b861952059ae (patch)
treebc1d4a3adcda6f5079ad90878e53e02f89f9deed /lib
parentdda89c73032549682af56aba2103a3896079bc27 (diff)
downloadsrc-2bef81cf3a594d8aabb5471bea46b861952059ae.tar.gz
src-2bef81cf3a594d8aabb5471bea46b861952059ae.zip
Change the logic here to match Makefile.inc1. Having it in two places
suggests an opportunity for refactoring :) Submitted by: nathanw@
Notes
Notes: svn path=/head/; revision=211759
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile4
1 files changed, 3 insertions, 1 deletions
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}