summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-12-30 20:43:10 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-12-30 20:43:10 (GMT)
commit81dc791f8391b321e05c8994d2560f25c8f063be (patch)
treea00e4a51176c2d728a3269058a5729160dd87827
parent61ce016e46a37a8901c31761d2a125c6f53c9c9a (diff)
cc/gcc: print supported multilibs
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-rw-r--r--scripts/build/cc/gcc.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 3745424..ab84e8b 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -408,6 +408,21 @@ do_cc_core() {
[ -z "${file}" ] || ext=".${file##*.}"
CT_DoExecLog ALL ln -sfv "${CT_TARGET}-gcc${ext}" "${core_prefix_dir}/bin/${CT_TARGET}-cc${ext}"
+ if [ "${CT_MULTILIB}" = "y" ]; then
+ multilibs=( $( "${core_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
+ else
+ CT_DoLog WARN "gcc configured for multilib, but none available"
+ fi
+ fi
+
CT_EndStep
}
@@ -667,5 +682,20 @@ do_cc() {
[ -z "${file}" ] || ext=".${file##*.}"
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
+ else
+ CT_DoLog WARN "gcc configured for multilib, but none available"
+ fi
+ fi
+
CT_EndStep
}