binutils/binutils: build multilib
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Nov 23 23:27:12 2011 +0100 (2011-11-23)
changeset 2816313e27d0f2c5
parent 2815 446a17b5dd1e
child 2817 240df3865193
binutils/binutils: build multilib

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/build/binutils/binutils.sh
     1.1 --- a/scripts/build/binutils/binutils.sh	Wed Nov 23 23:25:43 2011 +0100
     1.2 +++ b/scripts/build/binutils/binutils.sh	Wed Nov 23 23:27:12 2011 +0100
     1.3 @@ -61,6 +61,11 @@
     1.4          extra_config+=("--with-pkgversion=${CT_PKGVERSION}")
     1.5          [ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
     1.6      fi
     1.7 +    if [ "${CT_MULTILIB}" = "y" ]; then
     1.8 +        extra_config+=("--enable-multilib")
     1.9 +    else
    1.10 +        extra_config+=("--disable-multilib")
    1.11 +    fi
    1.12  
    1.13      [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls")
    1.14  
    1.15 @@ -74,7 +79,6 @@
    1.16          --host=${CT_HOST}                                       \
    1.17          --target=${CT_TARGET}                                   \
    1.18          --prefix=${CT_PREFIX_DIR}                               \
    1.19 -        --disable-multilib                                      \
    1.20          --disable-werror                                        \
    1.21          "${extra_config[@]}"                                    \
    1.22          ${CT_ARCH_WITH_FLOAT}                                   \
    1.23 @@ -166,6 +170,11 @@
    1.24              extra_config+=("--with-pkgversion=${CT_PKGVERSION}")
    1.25              [ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
    1.26          fi
    1.27 +        if [ "${CT_MULTILIB}" = "y" ]; then
    1.28 +            extra_config+=("--enable-multilib")
    1.29 +        else
    1.30 +            extra_config+=("--disable-multilib")
    1.31 +        fi
    1.32  
    1.33          [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls")
    1.34  
    1.35 @@ -178,7 +187,6 @@
    1.36              --disable-werror                                        \
    1.37              --enable-shared                                         \
    1.38              --enable-static                                         \
    1.39 -            --disable-multilib                                      \
    1.40              "${extra_config[@]}"                                    \
    1.41              ${CT_ARCH_WITH_FLOAT}                                   \
    1.42              "${CT_BINUTILS_EXTRA_CONFIG_ARRAY[@]}"