diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-11-21 00:23:16 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-24 10:27:45 +0000 |
commit | 0917e35aa2813e843457302d1a370dd6c7b03ad6 (patch) | |
tree | aff48f19272781a2976ad85854e7588fa680d732 /meta/recipes-devtools/go/go_1.15.bb | |
parent | 28087bb1197c01e9fa976eaa3c6a24b499af701e (diff) | |
download | poky-0917e35aa2813e843457302d1a370dd6c7b03ad6.tar.gz |
go: Update to 1.15.5
Define CXX_FOR_TARGET and CC_FOR_TARGET for target go
since we are cross building it, it helps in defining the compiler
for cgo on target
backport a patch to fix CGO_LDFLAGS regression like below
Fixes
| Building std for target, linux/arm.
| go build runtime/cgo: invalid flag in go:cgo_ldflag: -Wl,-O1
(From OE-Core rev: a71d1b58e8cf0976a614c49aa2dfe1e0605dfe95)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go_1.15.bb')
-rw-r--r-- | meta/recipes-devtools/go/go_1.15.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go_1.15.bb b/meta/recipes-devtools/go/go_1.15.bb index cc4c3fe45d..d4812c0f0a 100644 --- a/meta/recipes-devtools/go/go_1.15.bb +++ b/meta/recipes-devtools/go/go_1.15.bb | |||
@@ -6,6 +6,8 @@ inherit linuxloader | |||
6 | export GOBUILDMODE="" | 6 | export GOBUILDMODE="" |
7 | export CGO_ENABLED_riscv64 = "" | 7 | export CGO_ENABLED_riscv64 = "" |
8 | export GO_LDSO = "${@get_linuxloader(d)}" | 8 | export GO_LDSO = "${@get_linuxloader(d)}" |
9 | export CC_FOR_TARGET = "gcc" | ||
10 | export CXX_FOR_TARGET = "g++" | ||
9 | 11 | ||
10 | # mips/rv64 doesn't support -buildmode=pie, so skip the QA checking for mips/riscv and its | 12 | # mips/rv64 doesn't support -buildmode=pie, so skip the QA checking for mips/riscv and its |
11 | # variants. | 13 | # variants. |