Make the assignment of CRTARCH conditional, even in the armhf case, and

slightly rework the .if statement.  While here, fix a minor typo.
This commit is contained in:
Dimitry Andric 2017-12-02 17:39:04 +00:00
parent 7abc09cddb
commit 133637d591
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326475

View file

@ -3,12 +3,13 @@
.include <bsd.compiler.mk>
# armv[67] is a bit special since we allow a soft-floating version via
# CPUTYPE matching *soft*. This variant is may not actually work though.
# CPUTYPE matching *soft*. This variant may not actually work though.
.if ${MACHINE_ARCH:Marmv[67]*} != "" && \
(!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "")
CRTARCH= armhf
.endif
CRTARCH?= armhf
.else
CRTARCH?= ${MACHINE_CPUARCH:C/amd64/x86_64/}
.endif
CRTSRC= ${SRCTOP}/contrib/compiler-rt
.PATH: ${CRTSRC}/lib