<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 20, 2017 at 5:37 PM, Ross Burton <span dir="ltr"><<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1wk" class="a3s aXjCH m15a5e1a87ba765dd">From: Hongxu Jia <<a href="mailto:hongxu.jia@windriver.com">hongxu.jia@windriver.com</a>><br>
<br>
Add a patch to fix the CC/CFLAGS mangling that broke builds. [RB]<br>
<br>
Signed-off-by: Hongxu Jia <<a href="mailto:hongxu.jia@windriver.com">hongxu.jia@windriver.com</a>><br>
Signed-off-by: Ross Burton <<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>><br>
---<br>
meta/recipes-core/ncurses/<wbr>files/fix-cflags-mangle.patch | 17 +++++++++++++++++<br>
...{ncurses_6.0+<a href="http://20160625.bb" rel="noreferrer" target="_blank">20160625.bb</a> => ncurses_6.0+<a href="http://20161126.bb" rel="noreferrer" target="_blank">20161126.bb</a>} | 3 ++-<br>
2 files changed, 19 insertions(+), 1 deletion(-)<br>
create mode 100644 meta/recipes-core/ncurses/<wbr>files/fix-cflags-mangle.patch<br>
rename meta/recipes-core/ncurses/{<wbr>ncurses_6.0+<a href="http://20160625.bb" rel="noreferrer" target="_blank">20160625.bb</a> => ncurses_6.0+<a href="http://20161126.bb" rel="noreferrer" target="_blank">20161126.bb</a>} (73%)<br>
<br>
diff --git a/meta/recipes-core/ncurses/<wbr>files/fix-cflags-mangle.patch b/meta/recipes-core/ncurses/<wbr>files/fix-cflags-mangle.patch<br>
new file mode 100644<br>
index 0000000..0308fe1<br>
--- /dev/null<br>
+++ b/meta/recipes-core/ncurses/<wbr>files/fix-cflags-mangle.patch<br>
@@ -0,0 +1,17 @@<br>
+configure has a piece of logic to detect users "abusing" CC to hold compiler<br>
+flags (which we do). It also has logic to "correct" this by moving the flags<br>
+from CC to CFLAGS, but the sed only handles a single argument in CC.<br>
+<br>
+Replace the sed with a simple 'cut' call, making the assumption that the first<br>
+word is the compiler name and everything else is an option.</div></blockquote></div><br>What will happen when ccache is in use via CCACHE?<br>-- <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>