aboutsummaryrefslogtreecommitdiff
path: root/lib/libstand
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2016-03-06 04:13:17 +0000
committerGlen Barber <gjb@FreeBSD.org>2016-03-06 04:13:17 +0000
commitb655ec9752ee1da47110c5f0dacc0003ca55a7ad (patch)
tree7e556653474c7cbaf439c575734d098129e88b2b /lib/libstand
parent42d27ee34321c280015bccd973ebb0662b663267 (diff)
parent13f28d969a91b4abe8ca0e767a7e293077860b16 (diff)
Notes
Diffstat (limited to 'lib/libstand')
-rw-r--r--lib/libstand/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile
index e94ccbd0f0bbc..835b535d327b1 100644
--- a/lib/libstand/Makefile
+++ b/lib/libstand/Makefile
@@ -50,7 +50,11 @@ SRCS+= bcmp.c bcopy.c bzero.c ffs.c fls.c \
# Do not generate movt/movw, because the relocation fixup for them does not
# translate to the -Bsymbolic -pie format required by self_reloc() in loader(8).
# Also, the fpu is not available in a standalone environment.
+.if ${COMPILER_VERSION} < 30800
CFLAGS.clang+= -mllvm -arm-use-movt=0
+.else
+CFLAGS.clang+= -mno-movt
+.endif
CFLAGS.clang+= -mfpu=none
# Compiler support functions