mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-19 07:48:09 +00:00
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>
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user