1
0
Fork 0
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:
fossdd 2025-07-09 21:29:09 +02:00 committed by achill (fossdd)
parent 1ab09f343a
commit 4e721e45ef

View file

@ -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
}