summaryrefslogtreecommitdiffstats
path: root/lib/clang
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2016-01-14 19:00:13 +0000
committerandrew <andrew@FreeBSD.org>2016-01-14 19:00:13 +0000
commitda6ebcec56e8c16bdaa7a1370ce225626b981437 (patch)
tree6a0d9133c26763c6364bec3b6108bc5962cd06ee /lib/clang
parent4595193f73d5d91ddf831df0917a088ef5c3f100 (diff)
downloadFreeBSD-src-da6ebcec56e8c16bdaa7a1370ce225626b981437.zip
FreeBSD-src-da6ebcec56e8c16bdaa7a1370ce225626b981437.tar.gz
Set -mlong-calls where needed to get a static clang and lldb 3.8.0
linking. These are too large for a branch instruction to branch from an earlier point in the code to somewhere later. This will also allow these to be build with Thumb-2 when we get this infrastructure. Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D4855
Diffstat (limited to 'lib/clang')
-rw-r--r--lib/clang/clang.lib.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/clang/clang.lib.mk b/lib/clang/clang.lib.mk
index 13afa85..ab3551e 100644
--- a/lib/clang/clang.lib.mk
+++ b/lib/clang/clang.lib.mk
@@ -6,4 +6,8 @@ LLVM_SRCS= ${.CURDIR}/../../../contrib/llvm
INTERNALLIB=
+.if ${MACHINE_CPUARCH} == "arm"
+STATIC_CXXFLAGS+= -mlong-calls
+.endif
+
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud