diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2016-01-14 19:00:13 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2016-01-14 19:00:13 +0000 |
commit | c455b924834e5f38a33343dc45b8763dcc36447e (patch) | |
tree | 6a0d9133c26763c6364bec3b6108bc5962cd06ee /usr.bin/clang/clang | |
parent | 445a2b570ee971588bfc2a8161a9a9f4c5eaf1e4 (diff) | |
download | src-c455b924834e5f38a33343dc45b8763dcc36447e.tar.gz src-c455b924834e5f38a33343dc45b8763dcc36447e.zip |
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
Notes
Notes:
svn path=/head/; revision=294031
Diffstat (limited to 'usr.bin/clang/clang')
-rw-r--r-- | usr.bin/clang/clang/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/clang/clang/Makefile b/usr.bin/clang/clang/Makefile index 1489a5e2d327..92ed6e47be22 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++ \ |