Skip to content

Commit

Permalink
don't use buildmode=pie on ppc64
Browse files Browse the repository at this point in the history
It's already omitted for ppc64 in
hack/dockerfile/install/install.sh
not using wildcard, because GOARCH=ppc64le supports pie

Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
  • Loading branch information
gyakovlev committed Jun 11, 2021
1 parent b7b7571 commit 2cd68d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hack/make/.binary
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ hash_files() {
esac
fi

# -buildmode=pie is not supported on Windows and Linux on mips and riscv64.
# -buildmode=pie is not supported on Windows and Linux on mips, riscv64 and ppc64be.
# https://github.com/golang/go/blob/master/src/cmd/internal/sys/supported.go#L89-L99
case "$(go env GOOS)/$(go env GOARCH)" in
windows/* | linux/mips* | linux/riscv*) ;;
windows/* | linux/mips* | linux/riscv* | linux/ppc64) ;;

*)
BUILDFLAGS+=("-buildmode=pie")
Expand Down

0 comments on commit 2cd68d5

Please sign in to comment.