cc/gcc: do not print multilib for canadian-cross

Previous import from patchwork missed one hunk (in cset #d8feb93b3e49)
Apply it now.

Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Patchwork-Id: 189053
This commit is contained in:
Yann E. MORIN" 2012-10-13 18:26:26 +02:00
parent 071606c0a0
commit dad17e6e88

View File

@ -821,17 +821,21 @@ do_cc_backend() {
CT_DoExecLog ALL ln -sfv "${CT_TARGET}-gcc${ext}" "${CT_PREFIX_DIR}/bin/${CT_TARGET}-cc${ext}"
if [ "${CT_MULTILIB}" = "y" ]; then
multilibs=( $( "${CT_PREFIX_DIR}/bin/${CT_TARGET}-gcc" -print-multi-lib \
|tail -n +2 ) )
if [ ${#multilibs[@]} -ne 0 ]; then
CT_DoLog EXTRA "gcc configured with these multilibs (besides the default):"
for i in "${multilibs[@]}"; do
dir="${i%%;*}"
flags="${i#*;}"
CT_DoLog EXTRA " ${flags//@/ -} --> ${dir}/"
done
if [ "${CT_CANADIAN}" = "y" ]; then
CT_DoLog WARN "Canadian Cross unable to confirm multilibs configured correctly"
else
CT_DoLog WARN "gcc configured for multilib, but none available"
multilibs=( $( "${prefix}/bin/${CT_TARGET}-gcc" -print-multi-lib \
|tail -n +2 ) )
if [ ${#multilibs[@]} -ne 0 ]; then
CT_DoLog EXTRA "gcc configured with these multilibs (besides the default):"
for i in "${multilibs[@]}"; do
dir="${i%%;*}"
flags="${i#*;}"
CT_DoLog EXTRA " ${flags//@/ -} --> ${dir}/"
done
else
CT_DoLog WARN "gcc configured for multilib, but none available"
fi
fi
fi
}