mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Fix the cross-build
This commit is contained in:
parent
025c57e62b
commit
afefb19ac4
@ -236,8 +236,6 @@ kube::golang::set_platform_envs() {
|
|||||||
# Dynamic CGO linking for other server architectures than linux/amd64 goes here
|
# Dynamic CGO linking for other server architectures than linux/amd64 goes here
|
||||||
# If you want to include support for more server platforms than these, add arch-specific gcc names here
|
# If you want to include support for more server platforms than these, add arch-specific gcc names here
|
||||||
case "${platform}" in
|
case "${platform}" in
|
||||||
"linux/amd64")
|
|
||||||
;;
|
|
||||||
"linux/arm")
|
"linux/arm")
|
||||||
export CGO_ENABLED=1
|
export CGO_ENABLED=1
|
||||||
export CC=arm-linux-gnueabi-gcc
|
export CC=arm-linux-gnueabi-gcc
|
||||||
@ -256,10 +254,6 @@ kube::golang::set_platform_envs() {
|
|||||||
export CGO_ENABLED=1
|
export CGO_ENABLED=1
|
||||||
export CC=s390x-linux-gnu-gcc
|
export CC=s390x-linux-gnu-gcc
|
||||||
;;
|
;;
|
||||||
*)
|
|
||||||
echo "Unsupported architecture to cross-compile from linux/amd64." >&2
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user