mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-16 06:18:17 +00:00
binutils/binutils: don't install symlinks when in canadian
When building a canadian-cross, the binutils are not executable on the build machine, so there is no point in installing the symlinks in the gcc static/shared install dirs. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
@ -130,6 +130,10 @@ do_binutils() {
|
|||||||
# Make those new tools available to the core C compilers to come.
|
# Make those new tools available to the core C compilers to come.
|
||||||
# Note: some components want the ${TARGET}-{ar,as,ld,strip} commands as
|
# Note: some components want the ${TARGET}-{ar,as,ld,strip} commands as
|
||||||
# well. Create that.
|
# well. Create that.
|
||||||
|
# Don't do it for canadian or cross-native, because the binutils
|
||||||
|
# are not executable on the build machine.
|
||||||
|
case "${CT_TOOLCHAIN_TYPE}" in
|
||||||
|
cross|native)
|
||||||
mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}/${CT_TARGET}/bin"
|
mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}/${CT_TARGET}/bin"
|
||||||
mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}/bin"
|
mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}/bin"
|
||||||
mkdir -p "${CT_CC_CORE_SHARED_PREFIX_DIR}/${CT_TARGET}/bin"
|
mkdir -p "${CT_CC_CORE_SHARED_PREFIX_DIR}/${CT_TARGET}/bin"
|
||||||
@ -140,6 +144,9 @@ do_binutils() {
|
|||||||
ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${t}" "${CT_CC_CORE_SHARED_PREFIX_DIR}/${CT_TARGET}/bin/${t}"
|
ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${t}" "${CT_CC_CORE_SHARED_PREFIX_DIR}/${CT_TARGET}/bin/${t}"
|
||||||
ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${t}" "${CT_CC_CORE_SHARED_PREFIX_DIR}/bin/${CT_TARGET}-${t}"
|
ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${t}" "${CT_CC_CORE_SHARED_PREFIX_DIR}/bin/${CT_TARGET}-${t}"
|
||||||
done 2>&1 |CT_DoLog ALL
|
done 2>&1 |CT_DoLog ALL
|
||||||
|
;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
CT_EndStep
|
CT_EndStep
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,10 @@ do_elf2flt() {
|
|||||||
# Make those new tools available to the core C compilers to come.
|
# Make those new tools available to the core C compilers to come.
|
||||||
# Note: some components want the ${TARGET}-{ar,as,ld,strip} commands as
|
# Note: some components want the ${TARGET}-{ar,as,ld,strip} commands as
|
||||||
# well. Create that.
|
# well. Create that.
|
||||||
|
# Don't do it for canadian or cross-native, because the binutils
|
||||||
|
# are not executable on the build machine.
|
||||||
|
case "${CT_TOOLCHAIN_TYPE}" in
|
||||||
|
cross|native)
|
||||||
mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}/${CT_TARGET}/bin"
|
mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}/${CT_TARGET}/bin"
|
||||||
mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}/bin"
|
mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}/bin"
|
||||||
mkdir -p "${CT_CC_CORE_SHARED_PREFIX_DIR}/${CT_TARGET}/bin"
|
mkdir -p "${CT_CC_CORE_SHARED_PREFIX_DIR}/${CT_TARGET}/bin"
|
||||||
@ -70,6 +74,9 @@ do_elf2flt() {
|
|||||||
ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${t}" "${CT_CC_CORE_SHARED_PREFIX_DIR}/${CT_TARGET}/bin/${t}"
|
ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${t}" "${CT_CC_CORE_SHARED_PREFIX_DIR}/${CT_TARGET}/bin/${t}"
|
||||||
ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${t}" "${CT_CC_CORE_SHARED_PREFIX_DIR}/bin/${CT_TARGET}-${t}"
|
ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${t}" "${CT_CC_CORE_SHARED_PREFIX_DIR}/bin/${CT_TARGET}-${t}"
|
||||||
done 2>&1 |CT_DoLog ALL
|
done 2>&1 |CT_DoLog ALL
|
||||||
|
;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
CT_EndStep
|
CT_EndStep
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user