mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
community/kubernetes: disable PIE on s390x
fixes the s390x builder failure
This commit is contained in:
parent
1ab09f343a
commit
4e721e45ef
1 changed files with 8 additions and 1 deletions
|
@ -82,8 +82,15 @@ export FORCE_HOST_GO=y
|
|||
export KUBE_CGO_OVERRIDES="$_agent $_cli $_services"
|
||||
|
||||
build() {
|
||||
export GOFLAGS="$GOFLAGS -buildmode=pie -v -tags=providerless"
|
||||
|
||||
# FIXME: kubeadm binary fails at runtime with "_cgo_pthread_key_created missing"
|
||||
case "$CARCH" in
|
||||
s390x|riscv64) GOFLAGS="${GOFLAGS//-buildmode=pie/}" ;;
|
||||
esac
|
||||
|
||||
for _pkgs in $_agent $_cli $_services ; do
|
||||
make -j1 GOFLAGS="$GOFLAGS -buildmode=pie -v -tags=providerless" GOLDFLAGS="-extldflags=-static" WHAT=cmd/$_pkgs
|
||||
make -j1 GOLDFLAGS="-extldflags=-static" WHAT=cmd/$_pkgs
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue