mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
ldmode=pie is not supported for the mips arch
reference:
https://github.com/docker/cli/pull/2507
4c99c81326
Signed-off-by: Xiaodong Liu <liuxiaodong@loongson.cn>
This commit is contained in:
@@ -15,6 +15,15 @@ if [ -z "$TMP_GOPATH" ]; then
|
||||
else
|
||||
export GOPATH="$TMP_GOPATH"
|
||||
fi
|
||||
case "$(go env GOARCH)" in
|
||||
mips* | ppc64)
|
||||
# pie build mode is not supported on mips architectures
|
||||
export GO_BUILDMODE=""
|
||||
;;
|
||||
*)
|
||||
export GO_BUILDMODE="-buildmode=pie"
|
||||
;;
|
||||
esac
|
||||
|
||||
dir="$(dirname $0)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user