<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 21 February 2017 at 13:50, Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="gmail_extra">I&#39;m a big fan of fixing upstream so we don&#39;t have to carry a patch forever.  Their rationale I don&#39;t understand, but the implementation is clearly broken.</div></blockquote><div><br></div><div>Here&#39;s my current fix:</div><div><br></div><div>+      cf_flags=`echo &quot;$CC&quot; | awk  &#39;BEGIN{ORS=&quot; &quot;;RS=&quot; &quot;} /^-.+/ {print $1}&#39;`</div><div>+      CC=`echo &quot;$CC &quot; | awk  &#39;BEGIN{ORS=&quot; &quot;;RS=&quot; &quot;} /^[^-].+/ {print $1}&#39;` </div></div><br></div><div class="gmail_extra">Works for ccache, and doesn&#39;t involve a long/horrible sed.  I&#39;ve also sent it upstream.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>