Bug 2124 - native.bbclass: make TOOLCHAIN_OPTIONS empty
Summary: native.bbclass: make TOOLCHAIN_OPTIONS empty
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.2 M4
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
: 1505 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-15 13:50 UTC by Robert Yang
Modified: 2012-03-22 01:54 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2012-03-15 13:50:09 UTC
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 pkgs doesn't need it.
Comment 2 Robert Yang 2012-03-22 01:54:14 UTC
*** Bug 1505 has been marked as a duplicate of this bug. ***