Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132372095
D52330.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D52330.diff
View Options
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -368,8 +368,9 @@
.if ${LD} != "ld" && (${CC:[1]:H} != ${LD:[1]:H} || ${LD:[1]:T} != "ld")
# Add -fuse-ld=${LD} if $LD is in a different directory or not called "ld".
.if ${COMPILER_TYPE} == "clang"
-# Note: Clang does not like relative paths for ld so we map ld.lld -> lld.
-.if ${COMPILER_VERSION} >= 120000
+# Note: old Clang does not like relative paths for ld so we map ld.lld -> lld.
+.if ${COMPILER_VERSION} >= 200000
+.elif ${COMPILER_VERSION} >= 120000
LDFLAGS+= --ld-path=${LD:[1]:S/^ld.//1W}
.else
LDFLAGS+= -fuse-ld=${LD:[1]:S/^ld.//1W}
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -383,8 +383,9 @@
.if ${LD} != "ld" && (${CC:[1]:H} != ${LD:[1]:H} || ${LD:[1]:T} != "ld")
# Add -fuse-ld=${LD} if $LD is in a different directory or not called "ld".
.if ${COMPILER_TYPE} == "clang"
-# Note: Clang does not like relative paths for ld so we map ld.lld -> lld.
-.if ${COMPILER_VERSION} >= 120000
+# Note: old Clang does not like relative paths for ld so we map ld.lld -> lld.
+.if ${COMPILER_VERSION} >= 200000
+.elif ${COMPILER_VERSION} >= 120000
CCLDFLAGS+= --ld-path=${LD:[1]:S/^ld.//1W}
.else
CCLDFLAGS+= -fuse-ld=${LD:[1]:S/^ld.//1W}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 17, 8:00 AM (3 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23825264
Default Alt Text
D52330.diff (1 KB)
Attached To
Mode
D52330: clang 20 needs the real linker name
Attached
Detach File
Event Timeline
Log In to Comment