<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 20 February 2017 at 23:21, 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">c) fix the function that detects the &quot;broken&quot; use of CC as it should be extracting the flags and moving them to CFLAGS.  Clearly this isn&#39;t working somewhere.</div></blockquote><div><br></div><div>So upstream&#39;s sed made the assumption that there was only one argument being passed via CC. </div></div><br></div><div class="gmail_extra">I&#39;ve a local working fix that basically does this:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">-<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>cf_flags=`echo &quot;$CC&quot; | sed -e &#39;s/^.*[ <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>]\(-[^ <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>]\)/\1/&#39;`</div><div class="gmail_extra">+<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>cf_flags=`echo &quot;$CC&quot; | cut -f2- -d&#39; &#39;`</div><div><br></div><div>(use cut to remove the first word, assuming everything after the first word of CC is an option).</div><div><br></div><div>Hongxu, would you mind if I squash this into your upgrade so we don&#39;t end up with a revision where ncurses doesn&#39;t build?</div><div><br></div><div>Ross</div></div></div>