diff options
author | andrew <andrew@FreeBSD.org> | 2016-01-14 19:00:13 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-01-14 19:00:13 +0000 |
commit | da6ebcec56e8c16bdaa7a1370ce225626b981437 (patch) | |
tree | 6a0d9133c26763c6364bec3b6108bc5962cd06ee /usr.bin/clang | |
parent | 4595193f73d5d91ddf831df0917a088ef5c3f100 (diff) | |
download | FreeBSD-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/clang')
-rw-r--r-- | usr.bin/clang/clang/Makefile | 4 | ||||
-rw-r--r-- | usr.bin/clang/lldb/Makefile | 3 |
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 \ |