]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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:56:04 +0000 (22:56 +0100)
commit41cbfd7af60f93a4bd496b7b6bf477215a286950
tree9038f2c5ed037ee5fc033539728d3773328fccf0
parenta27da70b3a58e5232b683f055d425cde99499f7e
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.

(From OE-Core rev: 85ca40c42950315f2783b98f57df16b261d2826e)

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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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]