From da759cfa320d5076b075d15ff3f00ab3ba5634fd Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 10 Mar 2020 06:49:43 +0000 Subject: Remove -mlong-calls vhen building arm libraries and llvm. Clang from 9.0.0 onwards already has the necessary relocation range extenders, so this workaround is no longer needed (it produces longer and slower code). Tested on real hardware, and in cross-compile environment. Submitted by: mmel --- lib/libc++/Makefile | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/libc++') diff --git a/lib/libc++/Makefile b/lib/libc++/Makefile index c7a207a78b28..9e4ccbeb6dc7 100644 --- a/lib/libc++/Makefile +++ b/lib/libc++/Makefile @@ -7,9 +7,6 @@ _LIBCXXRTDIR= ${SRCTOP}/contrib/libcxxrt HDRDIR= ${SRCTOP}/contrib/llvm-project/libcxx/include SRCDIR= ${SRCTOP}/contrib/llvm-project/libcxx/src CXXINCLUDEDIR= ${INCLUDEDIR}/c++/v${SHLIB_MAJOR} -.if ${MACHINE_CPUARCH} == "arm" -STATIC_CXXFLAGS+= -mlong-calls -.endif .PATH: ${SRCDIR} -- cgit v1.3