diff options
author | Mike Gilbert <floppym@gentoo.org> | 2022-06-24 16:49:38 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2022-06-27 14:59:47 -0400 |
commit | d2f2470d7a323a9a24a91b54f6c223c95f7fa2c1 (patch) | |
tree | 4503fe20fd5c1d279487ce90da1f779843d07add /eclass | |
parent | user.eclass: allow UID/GID 0 in enewuser/enewgroup (diff) | |
download | gentoo-d2f2470d7a323a9a24a91b54f6c223c95f7fa2c1.tar.gz gentoo-d2f2470d7a323a9a24a91b54f6c223c95f7fa2c1.tar.bz2 gentoo-d2f2470d7a323a9a24a91b54f6c223c95f7fa2c1.zip |
toolchain-funcs.eclass: set LC_ALL=C where appropriate
tc-ld-is-gold and tc-ld-is-lld check the output of ld --version.
This output may vary depending on the language selected by the user.
Set LC_ALL=C to force English output.
Bug: https://bugs.gentoo.org/854147
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 54d4b0912a6e..17c075895d55 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -453,6 +453,9 @@ econf_build() { tc-ld-is-gold() { local out + # Ensure ld output is in English. + local -x LC_ALL=C + # First check the linker directly. out=$($(tc-getLD "$@") --version 2>&1) if [[ ${out} == *"GNU gold"* ]] ; then @@ -483,6 +486,9 @@ tc-ld-is-gold() { tc-ld-is-lld() { local out + # Ensure ld output is in English. + local -x LC_ALL=C + # First check the linker directly. out=$($(tc-getLD "$@") --version 2>&1) if [[ ${out} == *"LLD"* ]] ; then |