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
This commit is contained in:
parent
142f58e666
commit
43d137bb90
@ -110,8 +110,3 @@ CXXSTD?= c++14
|
||||
CXXFLAGS+= -fno-exceptions
|
||||
CXXFLAGS+= -fno-rtti
|
||||
CXXFLAGS.clang+= -stdlib=libc++
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "arm"
|
||||
STATIC_CFLAGS+= -mlong-calls
|
||||
STATIC_CXXFLAGS+= -mlong-calls
|
||||
.endif
|
||||
|
@ -8,7 +8,6 @@ OBJS+= Scrt1.o gcrt1.o
|
||||
CFLAGS+= -I${.CURDIR:H}/common \
|
||||
-I${SRCTOP}/lib/libc/include
|
||||
CFLAGS+= -DCRT_IRELOC_SUPPRESS
|
||||
STATIC_CFLAGS+= -mlong-calls
|
||||
|
||||
FILES= ${OBJS}
|
||||
FILESMODE= ${LIBMODE}
|
||||
|
@ -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}
|
||||
|
||||
|
@ -13,9 +13,6 @@ SRCS+= driver.cpp
|
||||
.if ${MK_SHARED_TOOLCHAIN} == "no"
|
||||
NO_SHARED?= yes
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "arm"
|
||||
CFLAGS+= -mlong-calls
|
||||
.endif
|
||||
.endif
|
||||
|
||||
LINKS= ${BINDIR}/clang ${BINDIR}/clang++ \
|
||||
|
Loading…
Reference in New Issue
Block a user