]> code.ossystems Code Review - openembedded-core.git/commit
gcc-5.2: Fix various _FOR_BUILD and related variables
authorMark Hatle <mark.hatle@windriver.com>
Mon, 19 Oct 2015 15:29:49 +0000 (10:29 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Oct 2015 21:51:49 +0000 (22:51 +0100)
commit85ca40c42950315f2783b98f57df16b261d2826e
treebb649f18d5601c26a06891b0acb0f874f99455f6
parent86c80f6d51b3700e090c70067808ea405d5a0b20
gcc-5.2: Fix various _FOR_BUILD and related variables

When doing a FOR_BUILD thing, you have to override CFLAGS with
CFLAGS_FOR_BUILD. And if you use C++, you also have to override
CXXFLAGS with CXXFLAGS_FOR_BUILD.
Without this, when building for mingw, you end up trying to use
the mingw headers for a host build.

The same goes for other variables as well, such as CPPFLAGS,
CPP, and GMPINC.

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/gcc/gcc-5.2.inc
meta/recipes-devtools/gcc/gcc-5.2/0042-cxxflags-for-build.patch [new file with mode: 0644]