From 295eb2307ad857b4558b9252b7ff5dd118b226f7 Mon Sep 17 00:00:00 2001 From: Nicholas Sielicki Date: Sat, 19 Oct 2019 15:48:55 -0500 Subject: [PATCH] allow binutils-config to use ld.lld --- sys-devel/binutils-config/files/binutils-config-5.1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys-devel/binutils-config/files/binutils-config-5.1 b/sys-devel/binutils-config/files/binutils-config-5.1 index 26ff278eece..da375b1a7b3 100644 --- a/sys-devel/binutils-config/files/binutils-config-5.1 +++ b/sys-devel/binutils-config/files/binutils-config-5.1 @@ -351,7 +351,9 @@ switch_linker() { local bpath ld=$1 case ${ld} in + ld.lld) die "Please supply full path for ld.lld" ;; ld.*) ;; + *ld.lld) ;; *) die "not supported: linker must start with 'ld.'" ;; esac @@ -360,7 +362,11 @@ switch_linker() { # does this binutils even support the requested linker ? if [[ ! -e ${bpath}/${ld} ]] ; then - die "sorry, but ${PROFILE} doesn't support the ${ld} linker" + # Special case ld.lld as it won't preexist in bpath + case ${ld} in + *ld.lld) ;; + *) die "sorry, but ${PROFILE} doesn't support the ${ld} linker" ;; + esac fi # switch it up -- 2.23.0