]> code.ossystems Code Review - openembedded-core.git/commit
gcc-4.9: Fix various _FOR_BUILD and related variables
authorJuro Bystricky <juro.bystricky@intel.com>
Sat, 7 Nov 2015 17:46:42 +0000 (09:46 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 25 Nov 2015 07:57:04 +0000 (07:57 +0000)
commite6dc4b2ac0cc6417c0e0ddcdcbe3f334581af8fc
tree777e815f17fe63a384716c61dff6a0bcb319578c
parente2fe4c99f1020a20b579832c4feafcd0e9bc2f75
gcc-4.9: Fix various _FOR_BUILD and related variables

This patch is based on the patch for gcc-5.2 (41cbfd7af60f93a4bd496b7b6bf477215a286950)

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: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/gcc/gcc-4.9.inc
meta/recipes-devtools/gcc/gcc-4.9/0066-cxxflags-for-build.patch [new file with mode: 0644]