Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177462226
D59103.1794474808.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
869 B
Referenced Files
None
Subscribers
None
D59103.1794474808.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D59103: lib/clang: Use -fPIC with GCC when building for aarch64
Attached
Detach File
Event Timeline