svn commit: r366273 - head/share/mk
Brooks Davis
brooks at FreeBSD.org
Tue Sep 29 23:48:05 UTC 2020
Author: brooks
Date: Tue Sep 29 23:48:05 2020
New Revision: 366273
URL: https://svnweb.freebsd.org/changeset/base/366273
Log:
Hoist comment on fixup of ld path
Reported by: jrtc27
Differential Revision: https://reviews.freebsd.org/D26591
Modified:
head/share/mk/bsd.sys.mk
Modified: head/share/mk/bsd.sys.mk
==============================================================================
--- head/share/mk/bsd.sys.mk Tue Sep 29 23:35:46 2020 (r366272)
+++ head/share/mk/bsd.sys.mk Tue Sep 29 23:48:05 2020 (r366273)
@@ -297,10 +297,10 @@ CFLAGS+= ERROR-tried-to-rebuild-during-make-install
.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
LDFLAGS+= --ld-path=${LD:[1]:S/^ld.//1W}
.else
-# Note: Clang does not like relative paths in -fuse-ld so we map ld.lld -> lld.
LDFLAGS+= -fuse-ld=${LD:[1]:S/^ld.//1W}
.endif
.else
More information about the svn-src-head
mailing list