native.bbclass: make TOOLCHAIN_OPTIONS empty
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 15 Mar 2012 13:50:59 +0000 (21:50 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Mar 2012 20:28:46 +0000 (20:28 +0000)
commit0ec623b85a852591b3a7e7e1a54febe89a08c8b8
tree70166487581c1a75719885f5188ce4dc41a92843
parent4e9b776e1dd9846af11b0c4aae33377f7b483927
native.bbclass: make TOOLCHAIN_OPTIONS empty

The native pkg doesn't need the TOOLCHAIN_OPTIONS, but it maybe used by
native pkgs, for example, the cmake.bbclass uses TOOLCHAIN_OPTIONS:

OECMAKE_C_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CPPFLAGS}"

and TOOLCHAIN_OPTIONS is:
TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"

If a native pkg inherits cmake.bbclass, then:
TOOLCHAIN_OPTIONS = " --sysroot="

and OECMAKE_C_FLAGS would be:
${HOST_CC_ARCH} --sysroot= ${CPPFLAGS}

This would cause unexpected errors, I think that we can make
TOOLCHAIN_OPTIONS empty in native.bbclass since native pkg doesn't need
it.

[YOCTO #2124]

(From OE-Core rev: e5555c743a9637f86a0a2c4c45a63a80838e81ae)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/native.bbclass