Summary: | sys-devel/binutils-config-5.1-r1: not accepting ld.lld as a linker | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrzej Korwin-Mikke <andrzej.kmikke> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugs.gentoo.org, gentoo, jstein, slyfox |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | ld.lld legal if supplied as full path |
Description
Andrzej Korwin-Mikke
2018-06-13 16:31:28 UTC
Today sys-devel/binutils-config is designed to manage linkers installed by sys-devel/binutils and nothing else. binutils-config basically links "${EPREFIX}"/usr/${HOST}/${TARGET}/binutils-bin/${VER}/ to "${EPREFIX}"/usr/libexec/gcc/${TARGET}/ sys-devel/lld uses different path. To help your use case I think it is reasonable to allow absolute path as a linker somewhere here: https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-devel/binutils-config/files/binutils-config-5.1#n353 Created attachment 593334 [details, diff]
ld.lld legal if supplied as full path
This patch is an ugly hack and untested, but at least it bumps the ticket. Another alternative is to drop --linker support from binutils-config as it never survives binutils upgrade. And instead suggest users to use CFLAGS/LDFLAGS+=-fuse-ld=lld. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd195f1e0d49e664119adb29100dbd7a094bd008 commit bd195f1e0d49e664119adb29100dbd7a094bd008 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-12-29 20:13:58 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-12-29 20:13:58 +0000 sys-devel/binutils-config: drop runtime linker switch selection Before this change there were 3 ways to switch default linker: 1. via LDFLAGS=-fuse-ld=gold LD=${CHOST}-ld.gold 2. via binutils' USE flags: USE="default-gold gold" 3. via *FLAGS=-B/path-to-own-tools 4. via 'binutils-config --linker' This change drops [3.] entirely in favour of [1.] and [2.]. [1.] should be preferred. Reported-by: Andrzej Korwin-Mikke Closes: https://bugs.gentoo.org/658054 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> .../binutils-config/binutils-config-5-r4.ebuild | 2 +- .../binutils-config/binutils-config-5.1-r1.ebuild | 2 +- .../binutils-config/binutils-config-5.2.ebuild | 42 ++ .../binutils-config/files/binutils-config-5.2 | 456 +++++++++++++++++++++ 4 files changed, 500 insertions(+), 2 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e096452a04e0b03a31cfa461287fa59e0f7cd561 commit e096452a04e0b03a31cfa461287fa59e0f7cd561 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-05-13 23:22:08 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-05-13 23:22:19 +0000 sys-devel/binutils-config: drop --linker from manpage, bug #658054 Follow bd195f1e0d49e6 ("sys-devel/binutils-config: drop runtime linker switch selection") and remove deleted '--linker' option from manpage. Reported-by: Steve Arnold Bug: https://bugs.gentoo.org/658054 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/binutils-config/files/binutils-config.8 | 6 ------ 1 file changed, 6 deletions(-) |