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 | |
parent | 445a2b570ee971588bfc2a8161a9a9f4c5eaf1e4 (diff) | |
download | src-test2-c455b924834e5f38a33343dc45b8763dcc36447e.tar.gz src-test2-c455b924834e5f38a33343dc45b8763dcc36447e.zip |
Notes
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 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++ \ diff --git a/usr.bin/clang/lldb/Makefile b/usr.bin/clang/lldb/Makefile index 1b014e6d0a0a..da997f746ffc 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 \ |