diff options
author | Alexey Neyman <stilor@att.net> | 2018-11-01 15:50:12 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-11-01 15:50:12 -0700 |
commit | f232d6d09a895b4be25cd01008f76afd3a673ac2 (patch) | |
tree | 3d4ba10e68b92e2f543c0f95a115f274efb1b929 /scripts/build/binutils | |
parent | 7c4c6892b9a5ea8e989ecb8a120db4d9f3aa46f6 (diff) | |
download | crosstool-ng-f232d6d09a895b4be25cd01008f76afd3a673ac2.tar.gz crosstool-ng-f232d6d09a895b4be25cd01008f76afd3a673ac2.tar.bz2 crosstool-ng-f232d6d09a895b4be25cd01008f76afd3a673ac2.zip |
Add an ability to modify an exported variable
... and use that ability to permanently set CTNG_LD_IS in case gold is default linker
and we're building glibc.
Fixes #988. This was a long-standing breakage in crosstool-NG (at least since it began
to run each step in a sub-shell).
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/binutils')
-rw-r--r-- | scripts/build/binutils/binutils.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index e8060ec5..f61b5563 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -227,9 +227,10 @@ do_binutils_backend() { cp -a "${prefix}/bin/${CT_TARGET}-ld" \ "${prefix}/${CT_TARGET}/bin/ld" - # If needed, force using ld.bfd during the toolchain build - if [ "${CT_BINUTILS_FORCE_LD_BFD}" = "y" ]; then - export CTNG_LD_IS=bfd + # If needed, force using ld.bfd during the toolchain build. + # Note that + if [ "${CT_BINUTILS_FORCE_LD_BFD_DEFAULT}" = "y" ]; then + CT_EnvModify export CTNG_LD_IS bfd fi fi } |