diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2016-10-18 15:11:56 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-10-19 12:37:52 -0400 |
commit | c3d8676a0cacc52536bb58828dcfdbc386e6e7c7 (patch) | |
tree | 68787605fd830ce01fbe3b30794240b3d14160d1 | |
parent | d866c439cb11d1070f169a5385071dc9a6f8b13b (diff) | |
download | meta-virtualization-c3d8676a0cacc52536bb58828dcfdbc386e6e7c7.tar.gz |
go-native: Add work around for binutils >= 2.27
We only use go-native to bootstrap go-cross and according to a post in
the go-lang git it is possible to work around by disabling CGO:
https://github.com/golang/go/issues/16906
This patch fixes the compile failure with binutils 2.27 which has the
message:
cannot load DWARF output from $WORK/net/_obj//_cgo_.o: decoding dwarf section info at offset 0x4: unsupported version 0
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-devtools/go-cross/go-native.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-devtools/go-cross/go-native.inc b/recipes-devtools/go-cross/go-native.inc index 8b4be9ec..cb2dd2a7 100644 --- a/recipes-devtools/go-cross/go-native.inc +++ b/recipes-devtools/go-cross/go-native.inc | |||
@@ -16,7 +16,7 @@ do_compile() { | |||
16 | mkdir -p ${WORKDIR}/build-tmp | 16 | mkdir -p ${WORKDIR}/build-tmp |
17 | 17 | ||
18 | cd src | 18 | cd src |
19 | ./make.bash --host-only | 19 | CGO_ENABLED=0 ./make.bash --host-only |
20 | } | 20 | } |
21 | 21 | ||
22 | 22 | ||