1.1 --- a/scripts/build/cc/gcc.sh Mon Aug 15 22:52:51 2011 +0200
1.2 +++ b/scripts/build/cc/gcc.sh Sun Apr 01 19:07:11 2012 +0200
1.3 @@ -490,6 +490,7 @@
1.4 final_opts+=( "prefix=${CT_PREFIX_DIR}" )
1.5 final_opts+=( "complibs=${CT_HOST_COMPLIBS_DIR}" )
1.6 final_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
1.7 + final_opts+=( "lang_list=$( cc_gcc_lang_list )" )
1.8 if [ "${CT_BUILD_MANUALS}" = "y" ]; then
1.9 final_opts+=( "build_manuals=yes" )
1.10 fi
1.11 @@ -497,7 +498,6 @@
1.12 final_opts+=( "mode=baremetal" )
1.13 final_opts+=( "build_libgcc=yes" )
1.14 final_opts+=( "build_libstdcxx=yes" )
1.15 - final_opts+=( "lang_list=$( cc_gcc_lang_list )" )
1.16 if [ "${CT_STATIC_TOOLCHAIN}" = "y" ]; then
1.17 final_opts+=( "build_staticlinked=yes" )
1.18 fi
1.19 @@ -523,12 +523,14 @@
1.20 # prefix : the runtime prefix : dir : (none)
1.21 # complibs : the companion libraries prefix : dir : (none)
1.22 # cflags : the host CFLAGS : string : (empty)
1.23 +# lang_list : the list of languages to build : string : (empty)
1.24 # build_manuals : whether to build manuals or not : bool : no
1.25 do_cc_backend() {
1.26 local host
1.27 local prefix
1.28 local complibs
1.29 local cflags
1.30 + local lang_list
1.31 local build_manuals
1.32 local -a host_libstdcxx_flags
1.33 local -a extra_config
1.34 @@ -543,7 +545,7 @@
1.35 CT_DoLog EXTRA "Configuring final compiler"
1.36
1.37 # Enable selected languages
1.38 - extra_config+=("--enable-languages=$( cc_gcc_lang_list )")
1.39 + extra_config+=("--enable-languages=${lang_list}")
1.40
1.41 for tmp in ARCH ABI CPU TUNE FPU FLOAT; do
1.42 eval tmp="\${CT_ARCH_WITH_${tmp}}"