Page MenuHomeFreeBSD

D59103.1794474808.diff
No OneTemporary

Authored By
Unknown
Size
869 B
Referenced Files
None
Subscribers
None

D59103.1794474808.diff

diff --git a/lib/clang/libclang/Makefile b/lib/clang/libclang/Makefile
--- a/lib/clang/libclang/Makefile
+++ b/lib/clang/libclang/Makefile
@@ -14,8 +14,8 @@
# Work around "relocation R_PPC_GOT16 out of range" errors
PICFLAG= -fPIC
.endif
-.if ${MACHINE_CPUARCH} == "aarch64"
-# Only required for GCC
+.if ${MACHINE_CPUARCH} == "aarch64" && ${COMPILER_TYPE} == "gcc"
+PICFLAG= -fPIC
LIBADD+= compiler_rt
.endif
.endif
diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile
--- a/lib/clang/libllvm/Makefile
+++ b/lib/clang/libllvm/Makefile
@@ -14,8 +14,8 @@
# Work around "relocation R_PPC_GOT16 out of range" errors
PICFLAG= -fPIC
.endif
-.if ${MACHINE_CPUARCH} == "aarch64"
-# Only required for GCC
+.if ${MACHINE_CPUARCH} == "aarch64" && ${COMPILER_TYPE} == "gcc"
+PICFLAG= -fPIC
LIBADD+= compiler_rt
.endif
CFLAGS+= -DLLVM_BUILD_LLVM_DYLIB

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 12, 9:13 AM (16 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41674157
Default Alt Text
D59103.1794474808.diff (869 B)

Event Timeline