]> code.ossystems Code Review - openembedded-core.git/commit
gcc-configure: Pass distinct target flags
authorKhem Raj <raj.khem@gmail.com>
Wed, 28 Mar 2012 14:22:44 +0000 (07:22 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Apr 2012 13:48:47 +0000 (14:48 +0100)
commit0e904103e9bd7fdb31bfcc129067511f9f45701b
tree66672d52edd71e8e3aa04093d9919cd35694b889
parent1f9c07d8a086a3dc3bb68eaabd56a1b1730306ff
gcc-configure: Pass distinct target flags

When building gcc-cross-canadian libgcc is built using
headers from gcc-crosssdk and not the target sysroot
because we do not pass proper CFLAGS for target bits
so it ends up using CFLAGS that were meant for compiling
canadian gcc itself. It does not show up as a problem
when building SDK with eglibc because eglibc-nativesdk
and eglibc have identical headers. The problem shows
up clearly when you try to build uclibc based meta-toolchain
since then nativesdk libc and target libc are different

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/recipes-devtools/gcc/gcc-configure-common.inc
meta/recipes-devtools/gcc/gcc-configure-cross.inc
meta/recipes-devtools/gcc/gcc-configure-sdk.inc