Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Nov 2023 21:34:51 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ec4c2adb5067 - main - Retire LLD_IS_LD option
Message-ID:  <202311132134.3ADLYpAE078254@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=ec4c2adb5067f7458e71c4098e716ee93508e96c

commit ec4c2adb5067f7458e71c4098e716ee93508e96c
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-11-13 21:34:14 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-11-13 21:34:14 +0000

    Retire LLD_IS_LD option
    
    The option was added to parallel the CLANG_IS_CC which was removed in
    commit 20a66ab4bf8511e51e11321b775d36c92e77fa69.
    
    Reviewed by:    imp, dim, emaste
    Differential Revision:  https://reviews.freebsd.org/D42575
---
 UPDATING                                 | 4 ++++
 share/man/man5/src.conf.5                | 9 +--------
 share/mk/src.opts.mk                     | 1 -
 tools/build/mk/OptionalObsoleteFiles.inc | 5 -----
 tools/build/options/WITHOUT_LLD_IS_LD    | 6 ------
 tools/build/options/WITH_LLD_IS_LD       | 1 -
 usr.bin/clang/lld/Makefile               | 2 +-
 7 files changed, 6 insertions(+), 22 deletions(-)

diff --git a/UPDATING b/UPDATING
index 1ee0731742b3..763f8f29a4f0 100644
--- a/UPDATING
+++ b/UPDATING
@@ -27,6 +27,10 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 15.x IS SLOW:
 	world, or to merely disable the most expensive debugging functionality
 	at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
 
+20231113:
+	The WITHOUT_LLD_IS_LD option has been removed.  When LLD is enabled
+	it is always installed as /usr/bin/ld.
+
 20231027:
 	Forward compatibility (running the new code on old kernels) for the
 	"ino64" project have been removed. The need for it has passed long ago.
diff --git a/share/man/man5/src.conf.5 b/share/man/man5/src.conf.5
index 67a906e964b2..e6affc81ab9c 100644
--- a/share/man/man5/src.conf.5
+++ b/share/man/man5/src.conf.5
@@ -1,5 +1,5 @@
 .\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman.
-.Dd October 29, 2023
+.Dd November 13, 2023
 .Dt SRC.CONF 5
 .Os
 .Sh NAME
@@ -902,13 +902,6 @@ amd64/amd64, arm64/aarch64, i386/i386, powerpc/powerpc, powerpc/powerpc64 and po
 Do not build the LLD linker during the bootstrap phase of
 the build.
 To be able to build the system an alternate linker must be provided via XLD.
-.It Va WITHOUT_LLD_IS_LD
-Do not install a
-.Pa /usr/bin/ld symlink
-to
-.Pa ld.lld .
-The system will not have a usable tool chain unless a linker is provided
-some other way.
 .It Va WITHOUT_LLVM_ASSERTIONS
 Disable debugging assertions in LLVM.
 .It Va WITH_LLVM_BINUTILS
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index ecb944262955..cf7f3f7dffa7 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -124,7 +124,6 @@ __DEFAULT_YES_OPTIONS = \
     LEGACY_CONSOLE \
     LLD \
     LLD_BOOTSTRAP \
-    LLD_IS_LD \
     LLVM_ASSERTIONS \
     LLVM_COV \
     LLVM_CXXFILT \
diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc
index f4eb36f50df1..5335e5ea4ffc 100644
--- a/tools/build/mk/OptionalObsoleteFiles.inc
+++ b/tools/build/mk/OptionalObsoleteFiles.inc
@@ -162,11 +162,6 @@ OLD_FILES+=usr/share/man/man8/bhyveload.8.gz
 OLD_DIRS+=usr/share/examples/bhyve
 .endif
 
-.if ${MK_LLD_IS_LD} == no
-OLD_FILES+=usr/bin/ld
-OLD_FILES+=usr/share/man/man1/ld.1.gz
-.endif
-
 .if ${MK_BLACKLIST} == no
 OLD_FILES+=etc/blacklistd.conf
 OLD_FILES+=etc/rc.d/blacklistd
diff --git a/tools/build/options/WITHOUT_LLD_IS_LD b/tools/build/options/WITHOUT_LLD_IS_LD
deleted file mode 100644
index 8fca09cf94b8..000000000000
--- a/tools/build/options/WITHOUT_LLD_IS_LD
+++ /dev/null
@@ -1,6 +0,0 @@
-Do not install a
-.Pa /usr/bin/ld symlink
-to
-.Pa ld.lld .
-The system will not have a usable tool chain unless a linker is provided
-some other way.
diff --git a/tools/build/options/WITH_LLD_IS_LD b/tools/build/options/WITH_LLD_IS_LD
deleted file mode 100644
index fd6bfc684d1a..000000000000
--- a/tools/build/options/WITH_LLD_IS_LD
+++ /dev/null
@@ -1 +0,0 @@
-Use LLVM's LLD as the system linker.
diff --git a/usr.bin/clang/lld/Makefile b/usr.bin/clang/lld/Makefile
index ec0c10e17441..86f6b6f76ee8 100644
--- a/usr.bin/clang/lld/Makefile
+++ b/usr.bin/clang/lld/Makefile
@@ -9,7 +9,7 @@ PACKAGE=	lld
 PROG_CXX=	ld.lld
 # Man page directory
 .PATH:		${LLD_SRCS}/docs
-.if (!defined(TOOLS_PREFIX) && ${MK_LLD_IS_LD} != "no") || \
+.if !defined(TOOLS_PREFIX) || \
     (defined(TOOLS_PREFIX) && ${MK_LLD_BOOTSTRAP} != "no")
 SYMLINKS=	${PROG_CXX} ${BINDIR}/ld
 MLINKS=		ld.lld.1 ld.1



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