From afefb19ac4c076938f6e9b78948892deb6eddb02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20K=C3=A4ldstr=C3=B6m?= Date: Sat, 10 Dec 2016 16:26:21 +0200 Subject: [PATCH] Fix the cross-build --- hack/lib/golang.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh index 663420c7a05..5837a386e34 100755 --- a/hack/lib/golang.sh +++ b/hack/lib/golang.sh @@ -236,8 +236,6 @@ kube::golang::set_platform_envs() { # 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 case "${platform}" in - "linux/amd64") - ;; "linux/arm") export CGO_ENABLED=1 export CC=arm-linux-gnueabi-gcc @@ -256,10 +254,6 @@ kube::golang::set_platform_envs() { export CGO_ENABLED=1 export CC=s390x-linux-gnu-gcc ;; - *) - echo "Unsupported architecture to cross-compile from linux/amd64." >&2 - exit 1 - ;; esac fi }