[oe-commits] [openembedded-core] 05/07: go-runtime_1.9: pass BUILD_ flags to cgo for host-side build

git at git.openembedded.org git at git.openembedded.org
Mon Apr 23 10:15:38 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch sumo-next
in repository openembedded-core.

commit b1783e423444e0432d2653fbd00c18d119d82647
Author: Matt Madison <matt at madison.systems>
AuthorDate: Sat Apr 21 06:19:37 2018 -0700

    go-runtime_1.9: pass BUILD_ flags to cgo for host-side build
    
    When running the make.bash script to build the host-side
    tools, make sure that cgo is using CFLAGS and LDFLAGS for
    the build host, rather than those for the target.
    
    [YOCTO #12704]
    
    Signed-off-by: Matt Madison <matt at madison.systems>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-devtools/go/go-runtime_1.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/go/go-runtime_1.9.bb b/meta/recipes-devtools/go/go-runtime_1.9.bb
index a99cc30..d5279ea 100644
--- a/meta/recipes-devtools/go/go-runtime_1.9.bb
+++ b/meta/recipes-devtools/go/go-runtime_1.9.bb
@@ -11,7 +11,7 @@ do_compile() {
 	export CC=$BUILD_CC
 
 	cd src
-	./make.bash --host-only
+	CGO_CFLAGS="${BUILD_CFLAGS}" CGO_LDFLAGS="${BUILD_LDFLAGS}" ./make.bash --host-only
 	cp ${B}/pkg/tool/${BUILD_GOTUPLE}/go_bootstrap ${B}
 	rm -rf ${B}/pkg/${TARGET_GOTUPLE}
 	./make.bash --target-only

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list