<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif"><p>Hi all,</p>
<p>I've recently noticed a mismatch between CC options </p>
<p>- set by the SDK environment script </p>
<p>- set by the do_compile task for any 'target' class recipes when the DISTRO is configured with TCLIBC = "musl"</p>
<p>The SDK env script adds "-mmusl" when exporting CC while do_compile doesn't.</p>
<p>We can see TARGET_CC_ARCH_append_libc-musl = " -mmusl" in file meta/classes/toolchain-scripts.bbclass, this class is inherited when building the meta-environment-<MACHINE> recipe (dependancy of the populate_sdk task of core images).</p>
<p>Can anyone explain what is the aim of this -mmusl option and if required why this option is not set on both sides ?</p>
<p>I fear this could lead to some situations where applications built from the SDK and then built with the full Yocto stack don't behave exactly the same.</p>
<p>Thanks</p>
<p>Antoine</p></div>
</div></div></div>