scripts/build/binutils/binutils.sh
changeset 2816 313e27d0f2c5
parent 2804 8946dd980d9e
child 2906 af58fa8b5caa
     1.1 --- a/scripts/build/binutils/binutils.sh	Mon Dec 12 20:24:05 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[@]}"