<p dir="ltr"></p>
<p dir="ltr">-Khem<br>
On Apr 7, 2014 5:53 AM, &quot;Mike Crowe&quot; &lt;<a href="mailto:mac@mcrowe.com">mac@mcrowe.com</a>&gt; wrote:<br>
&gt;<br>
&gt; We&#39;re building for both ARM and MIPS-based MACHINEs in a single source<br>
&gt; tree. This seems to result in us compiling (or luckily most of the time<br>
&gt; resurrecting from sstate-cache) two different versions of all -native<br>
&gt; packages due to different base hashes.<br>
&gt;<br>
&gt; It seems that this difference in base hashes is due to the exported<br>
&gt; variable TARGET_LDFLAGS being different between the two CPUs:<br>
&gt;<br>
&gt; &lt; export TARGET_LDFLAGS=&quot;-Wl,-O1  -Wl,--as-needed&quot;<br>
&gt; ---<br>
&gt; &gt; export TARGET_LDFLAGS=&quot;-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed&quot;<br>
&gt;<br>
&gt; which in turn is because TARGET_LINK_HASH_STYLE is explicitly set to &quot;sysv&quot;<br>
&gt; on MIPS but allowed to be &quot;gnu&quot; on everything else.<br>
&gt;<br>
&gt; Every time I switch back and forth between building ARM-based and<br>
&gt; MIPS-based machines the do_populate_sysroot_setscene tasks run for each<br>
&gt; required -native recipe.<br>
&gt;<br>
&gt; If I modify native.bbclass to do:<br>
&gt;<br>
&gt;  TARGET_LDFLAGS = &quot;${BUILD_LDFLAGS}&quot;</p>
<p dir="ltr">this is reasonable to do<br>
&gt;<br>
&gt; then the hashes match and this unnecessary sysroot population is avoided.<br>
&gt;<br>
&gt; Is this a sensible thing to be doing? It does mean that TARGET_LDFLAGS<br>
&gt; contains a lot of (presumably unnecessary) rpath shenanigans but perhaps<br>
&gt; that doesn&#39;t matter. :(<br>
&gt;<br>
&gt; Thanks.<br>
&gt;<br>
&gt; Mike.<br>
&gt; --<br>
&gt; _______________________________________________<br>
&gt; Openembedded-core mailing list<br>
&gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</p>