diff options
| author | Dave Chen <dave.chen@arm.com> | 2021-12-29 15:41:20 +0800 |
|---|---|---|
| committer | Dave Chen <dave.chen@arm.com> | 2021-12-29 15:41:20 +0800 |
| commit | 4d08b4c33ec4b83f643a393d4b9e5a254e91439e (patch) | |
| tree | 6ba9abb20ac8be12e879ff33fd61b95adbe7f9c6 /hack | |
| parent | Merge pull request #3505 from fisherxu/stale-bot (diff) | |
| download | kubeedge-4d08b4c33ec4b83f643a393d4b9e5a254e91439e.tar.gz | |
Fix the issue when cross-building for ARMv8
Signed-off-by: Dave Chen <dave.chen@arm.com>
Diffstat (limited to 'hack')
| -rwxr-xr-x | hack/lib/golang.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh index a42b5582b..b028b33b3 100755 --- a/hack/lib/golang.sh +++ b/hack/lib/golang.sh @@ -294,6 +294,7 @@ kubeedge::golang::cross_build_place_binaries() { local name="${bin##*/}" if [ "${goarm}" == "8" ]; then set -x + GOARM="" # need to clear the value since golang compiler doesn't allow this env when building the binary for ARMv8. GOARCH=arm64 GOOS="linux" CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc go build -o ${KUBEEDGE_OUTPUT_BINPATH}/${name} -ldflags "$ldflags" $bin set +x elif [ "${goarm}" == "7" ]; then |
