<div dir="ltr">The anonymous python bellow this chunk limits this whole recipe only for nativesdk (I don&#39;t know why it uses BBCLASSEXTEND + anonymous python instead of just inheritting nativesdk directly from nativesdk-libxcrypt recipe to make it more obvious ...).</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 9, 2018 at 11:59 PM, Khem Raj <span dir="ltr">&lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 4/9/18 12:51 AM, Martin Jansa wrote:<br>
&gt; * add it to allow older distributions e.g. Ubuntu 14.04 with gcc 4.8<br>
&gt;   to build this, otherwise it fails with:<br>
&gt;   ../git/gen-des-tables.c: In function &#39;write_table_u8&#39;:<br>
&gt;   ../git/gen-des-tables.c:307:3: error: &#39;for&#39; loop initial declarations are only allowed in C99 mode<br>
&gt;      for (size_t i = 0; i &lt; m; i++)<br>
&gt;      ^<br>
&gt;<br>
&gt; Signed-off-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a>&gt;<br>
&gt; ---<br>
&gt;  meta/recipes-core/libxcrypt/<a href="http://libxcrypt_4.0.0.bb" rel="noreferrer" target="_blank">li<wbr>bxcrypt_4.0.0.bb</a> | 2 +-<br>
&gt;  1 file changed, 1 insertion(+), 1 deletion(-)<br>
&gt;<br>
&gt; diff --git a/meta/recipes-core/libxcrypt/<a href="http://libxcrypt_4.0.0.bb" rel="noreferrer" target="_blank"><wbr>libxcrypt_4.0.0.bb</a> b/meta/recipes-core/libxcrypt/<a href="http://libxcrypt_4.0.0.bb" rel="noreferrer" target="_blank"><wbr>libxcrypt_4.0.0.bb</a><br>
&gt; index b1982c1991..a1be4be7ef 100644<br>
&gt; --- a/meta/recipes-core/libxcrypt/<a href="http://libxcrypt_4.0.0.bb" rel="noreferrer" target="_blank"><wbr>libxcrypt_4.0.0.bb</a><br>
&gt; +++ b/meta/recipes-core/libxcrypt/<a href="http://libxcrypt_4.0.0.bb" rel="noreferrer" target="_blank"><wbr>libxcrypt_4.0.0.bb</a><br>
&gt; @@ -20,7 +20,7 @@ FILES_${PN} = &quot;${libdir}/libcrypt*.so.* ${libdir}/libcrypt-*.so ${libdir}/libowc<br>
&gt;<br>
&gt;  S = &quot;${WORKDIR}/git&quot;<br>
&gt;<br>
&gt; -BUILD_CPPFLAGS = &quot;-I${STAGING_INCDIR_NATIVE}&quot;<br>
&gt; +BUILD_CPPFLAGS = &quot;-I${STAGING_INCDIR_NATIVE} -std=gnu99&quot;<br>
<br>
</span>This might change behaviour with gcc5+ e.g. where default is gnu11<br>
in anycase, I think if we could limit this to native version can limit<br>
the impact.<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;  TARGET_CPPFLAGS = &quot;-I${STAGING_DIR_TARGET}${<wbr>includedir}&quot;<br>
&gt;<br>
&gt;  python () {<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>