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.1 --- a/scripts/build/cc/gcc.sh Fri May 03 17:12:15 2013 +0000
1.2 +++ b/scripts/build/cc/gcc.sh Mon May 13 15:00:56 2013 +0800
1.3 @@ -432,6 +432,7 @@
1.4 # configurations.
1.5 if [ "${CT_BARE_METAL},${CT_CANADIAN}" = "y,y" ]; then
1.6 repair_cc="CC_FOR_BUILD=${CT_BUILD}-gcc \
1.7 + CXX_FOR_BUILD=${CT_BUILD}-g++ \
1.8 GCC_FOR_TARGET=${CT_TARGET}-gcc"
1.9 else
1.10 repair_cc=""