<?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>12926</bug_id>
          
          <creation_ts>2018-09-18 19:51:22 +0000</creation_ts>
          <short_desc>Standard SDK sets LD=&lt;cross&gt;-ld but LDFLAGS with &quot;-Wl,&quot; as if LD=&lt;cross&gt;-gcc</short_desc>
          <delta_ts>2020-02-19 23:35:41 +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>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yann Dirson">ydirson</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81573</commentid>
    <comment_count>0</comment_count>
    <who name="Yann Dirson">ydirson</who>
    <bug_when>2018-09-18 19:51:22 +0000</bug_when>
    <thetext>When cross-compiling a kernel using the SDK from current sumo head, I get hit by link failures, the cross ld rejecting -Wl,-O1 and such that it gets from LDFLAGS.

Looks like a mismatch, since such flags are clearly meant for a cross gcc wrapper, though I wonder how such a thing would have been missed - can&apos;t see what I would have done wrong though...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81586</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-09-20 14:43:15 +0000</bug_when>
    <thetext>https://lists.yoctoproject.org/pipermail/yocto/2013-January/011590.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81587</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-09-20 18:12:07 +0000</bug_when>
    <thetext>This definitely is an oddity but it matches how the build system works today. I believe there may be some oddity in autotools and we&apos;re following the convention with the SDK matching the way the rest of OE works.

I did once look into either specifiing gcc as LD or making LDFLAGS not use the -Wl prefixes but doing that basically causes the world to break.

I don&apos;t really want to change the SDK to be different to the build system and I also suspect if we did, it would stop working with autotool&apos;d projects.

We should probably check into this a bit further but I can&apos;t see a way we can realistically change what we have here...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81588</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-09-20 18:14:06 +0000</bug_when>
    <thetext>See https://bugzilla.yoctoproject.org/show_bug.cgi?id=3920</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86148</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-01-29 16:36:56 +0000</bug_when>
    <thetext>Assigning to RP so he can decide whether we do something, or just close it as a fact.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86503</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-19 23:35:41 +0000</bug_when>
    <thetext>We really can&apos;t change this, this is how the world expects these variables to behave, odd as it sounds...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>