aboutsummaryrefslogtreecommitdiff
path: root/lib/libstand
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-01-08 16:50:04 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-01-08 16:50:04 +0000
commit17bf72a25b925867fed9bd3fc7c22ccd681666d6 (patch)
tree42316502316806fed57722ddcb0ee804af05342c /lib/libstand
parent7d043514520e86c17db88b1dfc7fe04eb0ec4b96 (diff)
downloadsrc-17bf72a25b925867fed9bd3fc7c22ccd681666d6.tar.gz
src-17bf72a25b925867fed9bd3fc7c22ccd681666d6.zip
Similar to r293384, for libstand, also use the new -mno-movt flag with
clang >= 3.8.0 targeting arm.
Notes
Notes: svn path=/projects/clang380-import/; revision=293426
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 ee8087be3ea6..9740d2924eee 100644
--- a/lib/libstand/Makefile
+++ b/lib/libstand/Makefile
@@ -49,7 +49,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