<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 22 October 2014 04:23,  <span dir="ltr">&lt;<a href="mailto:wenzong.fan@windriver.com" target="_blank">wenzong.fan@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":4fd" class="a3s" style="overflow:hidden">+-      @echo &#39;#define  LSOF_CCV        &quot;${CCV}&quot;&#39; &gt;&gt; version.h<br>
++      @LSOF_CCV=`${CC} -v 2&gt;&amp;1 | sed -n &#39;s/.*version \(.*\)/\1/p&#39;` &amp;&amp;\<br>
++      echo &quot;#define   LSOF_CCV        \&quot;${LSOF_CCV}\&quot;&quot; &gt;&gt; version.h</div></blockquote></div><br>It seems that a better (and importantly, upstreamable) fix would be to pass LSOF_CC correctly to ./Configure instead of overriding in do_compile(), and change the LSOF_CCV assignment to run LSOF_CC if _CCV isn&#39;t already set.</div><div class="gmail_extra"><br></div><div class="gmail_extra">(My general approach here is spend a little more time getting a fix upstreamed so that we&#39;re not fixing our patch every few months)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div><div class="gmail_extra"><br></div></div>