Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2020 23:48:05 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r366273 - head/share/mk
Message-ID:  <202009292348.08TNm5eF002539@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009292348.08TNm5eF002539>