<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2124</bug_id>
          
          <creation_ts>2012-03-15 13:50:09 +0000</creation_ts>
          <short_desc>native.bbclass: make TOOLCHAIN_OPTIONS empty</short_desc>
          <delta_ts>2012-03-22 01:54:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19139</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-03-15 13:50:09 +0000</bug_when>
    <thetext>The native pkg doesn&apos;t need the TOOLCHAIN_OPTIONS, but it maybe used by native pkgs, for example:
The cmake.bbclass uses TOOLCHAIN_OPTIONS:
OECMAKE_C_FLAGS ?= &quot;${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CPPFLAGS}&quot;

and TOOLCHAIN_OPTIONS is:
TOOLCHAIN_OPTIONS = &quot; --sysroot=${STAGING_DIR_TARGET}&quot;

If a native pkg inherits cmake.bbclass, then:
TOOLCHAIN_OPTIONS = &quot; --sysroot=&quot;

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&apos;t need it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19243</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-03-20 01:10:51 +0000</bug_when>
    <thetext>Fixed:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5b67d645e33c304119257c59d41645b07df409c4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19319</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-03-22 01:54:14 +0000</bug_when>
    <thetext>*** Bug 1505 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>