summaryrefslogtreecommitdiffstats
path: root/usr.bin
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 /usr.bin
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 'usr.bin')
-rw-r--r--usr.bin/clang/clang/Makefile4
-rw-r--r--usr.bin/clang/lldb/Makefile3
2 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/clang/clang/Makefile b/usr.bin/clang/clang/Makefile
index 1489a5e..92ed6e4 100644
--- a/usr.bin/clang/clang/Makefile
+++ b/usr.bin/clang/clang/Makefile
@@ -11,6 +11,10 @@ SRCS= cc1_main.cpp \
.if ${MK_SHARED_TOOLCHAIN} == "no"
NO_SHARED?= yes
+
+.if ${MACHINE_CPUARCH} == "arm"
+CFLAGS+= -mlong-calls
+.endif
.endif
LINKS= ${BINDIR}/clang ${BINDIR}/clang++ \
diff --git a/usr.bin/clang/lldb/Makefile b/usr.bin/clang/lldb/Makefile
index 1b014e6..da997f7 100644
--- a/usr.bin/clang/lldb/Makefile
+++ b/usr.bin/clang/lldb/Makefile
@@ -8,6 +8,9 @@ LLDB_SRCS=${.CURDIR}/../../../contrib/llvm/tools/lldb
CFLAGS+= -I${LLDB_SRCS}/include
CXXFLAGS+= -std=c++11
+.if ${MACHINE_CPUARCH} == "arm"
+CFLAGS+= -mlong-calls
+.endif
SRCDIR= tools/lldb/tools/driver
SRCS= Driver.cpp \
OpenPOWER on IntegriCloud