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 diff -durN gcc-4.4.0.orig/libgomp/configure gcc-4.4.0/libgomp/configure
2 --- gcc-4.4.0.orig/libgomp/configure 2009-04-21 11:08:08.000000000 +0200
3 +++ gcc-4.4.0/libgomp/configure 2009-05-27 21:38:19.000000000 +0200
6 # Add -Wall -Werror if we are using GCC.
7 if test "x$GCC" = "xyes"; then
8 - XCFLAGS="$XCFLAGS -Wall -Werror"
9 + XCFLAGS="$XCFLAGS -Wall"
12 # Find other programs we need.