<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 14, 2018 at 6:48 PM, Khem Raj <span dir="ltr"><<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We allow to set LINKER_HASH_STYLE to be empty so this would fail<br>
since --with-linker-hash-style needs an argument and cant be empty<br>
<br>
Signed-off-by: Khem Raj <<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>><br>
---<br>
meta/recipes-devtools/gcc/gcc-<wbr>7.3.inc | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/recipes-devtools/gcc/<wbr>gcc-7.3.inc b/meta/recipes-devtools/gcc/<wbr>gcc-7.3.inc<br>
index d56d2c5e06..cc428ad3ef 100644<br>
--- a/meta/recipes-devtools/gcc/<wbr>gcc-7.3.inc<br>
+++ b/meta/recipes-devtools/gcc/<wbr>gcc-7.3.inc<br>
@@ -100,7 +100,7 @@ EXTRA_OECONF_BASE = "\<br>
--disable-bootstrap \<br>
--disable-libmudflap \<br>
--with-system-zlib \<br>
- --with-linker-hash-style=${<wbr>LINKER_HASH_STYLE} \<br>
+ ${@['','--with-linker-hash-<wbr>style=${LINKER_HASH_STYLE}'][<wbr>d.getVar('LINKER_HASH_STYLE') != '']} \<br></blockquote><div><br></div><div>That syntax was a hack around the fact that python didn’t have inline if statements at the time we started the project, but it does now:</div><div><br></div><div> ${@‘—with-linker-hash-style=${LINKER_HASH_STYLE}’ if ‘${LINKER_HASH_STYLE}’ else ‘'}</div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Christopher Larson<br>kergoth at gmail dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Senior Software Engineer, Mentor Graphics</div></div></div></div>
</div></div>