1.1 --- a/scripts/build/cc/gcc.sh Mon Jun 27 15:15:00 2011 +0200
1.2 +++ b/scripts/build/cc/gcc.sh Mon Jun 27 18:04:50 2011 +0200
1.3 @@ -267,6 +267,22 @@
1.4 *) extra_config+=( "--with-linker-hash-style=${CT_CC_GCC_LNK_HASH_STYLE}" );;
1.5 esac
1.6
1.7 + case "${CT_CC_GCC_mips_llsc}" in
1.8 + y) extra_config+=( --with-llsc );;
1.9 + m) ;;
1.10 + *) extra_config+=( --without-llsc );;
1.11 + esac
1.12 +
1.13 + case "${CT_CC_GCC_mips_synci}" in
1.14 + y) extra_config+=( --with-synci );;
1.15 + m) ;;
1.16 + *) extra_config+=( --without-synci );;
1.17 + esac
1.18 +
1.19 + if [ "${CT_CC_GCC_mips_plt}" ]; then
1.20 + extra_config+=( --with-mips-plt )
1.21 + fi
1.22 +
1.23 CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
1.24
1.25 # Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532)
1.26 @@ -544,6 +560,22 @@
1.27 *) extra_config+=( "--with-linker-hash-style=${CT_CC_GCC_LNK_HASH_STYLE}" );;
1.28 esac
1.29
1.30 + case "${CT_CC_GCC_mips_llsc}" in
1.31 + y) extra_config+=( --with-llsc );;
1.32 + m) ;;
1.33 + *) extra_config+=( --without-llsc );;
1.34 + esac
1.35 +
1.36 + case "${CT_CC_GCC_mips_synci}" in
1.37 + y) extra_config+=( --with-synci );;
1.38 + m) ;;
1.39 + *) extra_config+=( --without-synci );;
1.40 + esac
1.41 +
1.42 + if [ "${CT_CC_GCC_mips_plt}" ]; then
1.43 + extra_config+=( --with-mips-plt )
1.44 + fi
1.45 +
1.46 if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then
1.47 extra_config+=( --enable-plugin )
1.48 fi