cc/gcc: Set CXX_FOR_BUILD for bare metal and canadian build.
>From 4.8, g++ is used as the default compiler to build the toolchain.
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
Message-Id: <CACgzC7B-LQvAw3hOYhBA7b7g0H1WtH20gqXM=Y=YFO4FrnZKWQ@mail.gmail.com>
Patchwork-Id: 243590
1 # Compute sh-specific values
3 CT_DoArchTupleValues () {
4 # The architecture part of the tuple:
5 CT_TARGET_ARCH="${CT_ARCH_SH_VARIANT}${CT_ARCH_SUFFIX:-${target_endian_eb}}"
7 # gcc ./configure flags
16 case "${CT_ARCH_ENDIAN}" in
17 big) CT_ARCH_ENDIAN_CFLAG=-mb;;
18 little) CT_ARCH_ENDIAN_CFLAG=-ml;;
22 case "${CT_ARCH_SH_VARIANT}" in
23 sh3) CT_ARCH_ARCH_CFLAG=-m3;;
25 # softfp is not possible for SuperH, no need to test for it.
26 case "${CT_ARCH_FLOAT}" in
28 CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}"
31 CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu"