aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-11-07 09:47:05 +0000
committerWarner Losh <imp@FreeBSD.org>2017-11-07 09:47:05 +0000
commit8f3b60c5f1235c8f76d17b48cbcc5bcdf7eefc29 (patch)
tree8c1fe45f315d5c31fe07095f69858df9cb6f58ad /lib
parent06193f0be0046a13669732f29265b1e171187a14 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libclang_rt/Makefile.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libclang_rt/Makefile.inc b/lib/libclang_rt/Makefile.inc
index 2db3d6ff03f1..0f08d8054505 100644
--- a/lib/libclang_rt/Makefile.inc
+++ b/lib/libclang_rt/Makefile.inc
@@ -2,12 +2,12 @@
.include <bsd.compiler.mk>
-.if ${MACHINE} == "arm"
+# 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.
.if ${MACHINE_ARCH:Marmv[67]*} != "" && \
- (defined(CPUTYPE) && ${CPUTYPE:M*soft*} == "")
+ (!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "")
CRTARCH= armhf
.endif
-.endif
CRTARCH?= ${MACHINE_CPUARCH:C/amd64/x86_64/}
CRTSRC= ${SRCTOP}/contrib/compiler-rt