<div><br><div class="gmail_quote"><div dir="auto">On Sat, Apr 21, 2018 at 6:20 AM Matt Madison &lt;matt@madison.systems&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When running the make.bash script to build the host-side<br>
tools, make sure that cgo is using CFLAGS and LDFLAGS for<br>
the build host, rather than those for the target.</blockquote><div dir="auto"><br></div><div dir="auto">LGTM I have tested similar patch last night it should fix the issue at hand</div><div dir="auto">Thanks for quick fix</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
[YOCTO #12704]<br>
<br>
Signed-off-by: Matt Madison &lt;matt@madison.systems&gt;<br>
---<br>
 meta/recipes-devtools/go/<a href="http://go-runtime_1.9.bb" rel="noreferrer" target="_blank">go-runtime_1.9.bb</a> | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/recipes-devtools/go/<a href="http://go-runtime_1.9.bb" rel="noreferrer" target="_blank">go-runtime_1.9.bb</a> b/meta/recipes-devtools/go/<a href="http://go-runtime_1.9.bb" rel="noreferrer" target="_blank">go-runtime_1.9.bb</a><br>
index a99cc30f63..d5279ea897 100644<br>
--- a/meta/recipes-devtools/go/<a href="http://go-runtime_1.9.bb" rel="noreferrer" target="_blank">go-runtime_1.9.bb</a><br>
+++ b/meta/recipes-devtools/go/<a href="http://go-runtime_1.9.bb" rel="noreferrer" target="_blank">go-runtime_1.9.bb</a><br>
@@ -11,7 +11,7 @@ do_compile() {<br>
        export CC=$BUILD_CC<br>
<br>
        cd src<br>
-       ./make.bash --host-only<br>
+       CGO_CFLAGS=&quot;${BUILD_CFLAGS}&quot; CGO_LDFLAGS=&quot;${BUILD_LDFLAGS}&quot; ./make.bash --host-only<br>
        cp ${B}/pkg/tool/${BUILD_GOTUPLE}/go_bootstrap ${B}<br>
        rm -rf ${B}/pkg/${TARGET_GOTUPLE}<br>
        ./make.bash --target-only<br>
-- <br>
2.14.1<br>
<br>
</blockquote></div></div>