diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-04-05 01:02:28 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-04-05 01:02:28 +0200 |
commit | 942bd0e2a7207f295e88e6b0f07fb73b215e060e (patch) | |
tree | 2ab4224b08f5bee43a007f7477be66db9451a4ec /scripts/build/binutils/binutils.sh | |
parent | 2e7f8019d2420a8131289544655d8957961f1fc7 (diff) | |
download | crosstool-ng-942bd0e2a7207f295e88e6b0f07fb73b215e060e.tar.gz crosstool-ng-942bd0e2a7207f295e88e6b0f07fb73b215e060e.tar.bz2 crosstool-ng-942bd0e2a7207f295e88e6b0f07fb73b215e060e.zip |
binutils/binutils: add blind option to force use of ld.bfd during build
gold is not capable of building glibc/eglibc, so we have to
force using the BFD linker, ld.bfd.
Offer a blind option that affected components can select to
force use of the BFD linker during the build.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/binutils/binutils.sh')
-rw-r--r-- | scripts/build/binutils/binutils.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index 67a6196f..dc8f81ed 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -96,6 +96,11 @@ do_binutils() { chmod +x "${CT_PREFIX_DIR}/bin/${CT_TARGET}-ld" cp -a "${CT_PREFIX_DIR}/bin/${CT_TARGET}-ld" \ "${CT_PREFIX_DIR}/${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 + fi fi # Make those new tools available to the core C compilers to come. |