llvm: Link private LLVM libraries against compiler_rt for aarch64

This is required for GCC which uses libcalls for outlined atomics.

Reviewed by:	dim
Differential Revision:	https://reviews.freebsd.org/D55157
This commit is contained in:
John Baldwin
2026-02-09 11:26:52 -05:00
parent 244f498074
commit ee73475119
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -14,6 +14,10 @@ PRIVATELIB=
# Work around "relocation R_PPC_GOT16 out of range" errors
PICFLAG= -fPIC
.endif
.if ${MACHINE_CPUARCH} == "aarch64"
# Only required for GCC
LIBADD+= compiler_rt
.endif
.endif
SHARED_CXXFLAGS+= -UPIC # To avoid compile errors
+4
View File
@@ -10,6 +10,10 @@ PACKAGE= lldb
SHLIB_CXX= lldb
SHLIB_MAJOR= 19
PRIVATELIB=
.if ${MACHINE_CPUARCH} == "aarch64"
# Only required for GCC
LIBADD+= compiler_rt
.endif
.endif
SHARED_CXXFLAGS+= -UPIC # To avoid compile errors
+4
View File
@@ -14,6 +14,10 @@ PRIVATELIB=
# Work around "relocation R_PPC_GOT16 out of range" errors
PICFLAG= -fPIC
.endif
.if ${MACHINE_CPUARCH} == "aarch64"
# Only required for GCC
LIBADD+= compiler_rt
.endif
CFLAGS+= -DLLVM_BUILD_LLVM_DYLIB
.endif