Date: Fri, 27 Jan 2017 21:26:24 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r312898 - projects/clang400-import/lib/clang Message-ID: <201701272126.v0RLQOXl000210@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Fri Jan 27 21:26:23 2017 New Revision: 312898 URL: https://svnweb.freebsd.org/changeset/base/312898 Log: Add -mlong-calls also to LLVM's STATIC_CFLAGS on ARM -mlong-calls was set only in STATIC_CXXFLAGS, but there are some .c source files in LLVM which also need -mlong-calls. Unfortunately this is not sufficient to fix linking lldb on ARM, because LLVM-generated calls to __aeabi_read_tp do not honour the -mlong-calls flag. See LLVM PR31769 for details. Reviewed by: dim Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D9348 Modified: projects/clang400-import/lib/clang/llvm.build.mk Modified: projects/clang400-import/lib/clang/llvm.build.mk ============================================================================== --- projects/clang400-import/lib/clang/llvm.build.mk Fri Jan 27 21:18:23 2017 (r312897) +++ projects/clang400-import/lib/clang/llvm.build.mk Fri Jan 27 21:26:23 2017 (r312898) @@ -46,5 +46,6 @@ CXXFLAGS+= -fno-rtti CXXFLAGS.clang+= -stdlib=libc++ .if ${MACHINE_CPUARCH} == "arm" +STATIC_CFLAGS+= -mlong-calls STATIC_CXXFLAGS+= -mlong-calls .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701272126.v0RLQOXl000210>