diff options
author | Warner Losh <imp@FreeBSD.org> | 2010-08-24 16:35:26 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2010-08-24 16:35:26 +0000 |
commit | 2bef81cf3a594d8aabb5471bea46b861952059ae (patch) | |
tree | bc1d4a3adcda6f5079ad90878e53e02f89f9deed /lib | |
parent | dda89c73032549682af56aba2103a3896079bc27 (diff) | |
download | src-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/Makefile | 4 |
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} |