mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-20 17:12:55 +00:00
binutils/binutils: also install the wrapper for the internall ld
ld is also installed in PREFIX/TUPLE/bin, so we need to wrap that as well. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
e1698c4e78
commit
2e7f8019d2
@ -89,10 +89,13 @@ do_binutils() {
|
||||
if [ "${CT_BINUTILS_LD_WRAPPER}" = "y" ]; then
|
||||
CT_DoLog EXTRA "Installing ld wrapper"
|
||||
rm -f "${CT_PREFIX_DIR}/bin/${CT_TARGET}-ld"
|
||||
rm -f "${CT_PREFIX_DIR}/${CT_TARGET}/bin/ld"
|
||||
sed -r -e "s/@@DEFAULT_LD@@/${CT_BINUTILS_LINKER_DEFAULT}/" \
|
||||
"${CT_LIB_DIR}/scripts/build/binutils/binutils-ld.in" \
|
||||
>"${CT_PREFIX_DIR}/bin/${CT_TARGET}-ld"
|
||||
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"
|
||||
fi
|
||||
|
||||
# Make those new tools available to the core C compilers to come.
|
||||
|
Loading…
x
Reference in New Issue
Block a user