File gcc-on-ppc64-and-arm.patch of Package kubernetes.4864

diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
index fbbf34b4de5e..846d052a6ec6 100755
--- a/hack/lib/golang.sh
+++ b/hack/lib/golang.sh
@@ -1,5 +1,6 @@
 #!/bin/bash
 
+set -x
 # Copyright 2014 The Kubernetes Authors All rights reserved.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
@@ -236,10 +237,10 @@ kube::golang::set_platform_envs() {
       export CC=arm-linux-gnueabi-gcc
     elif [[ ${platform} == "linux/arm64" ]]; then
       export CGO_ENABLED=1
-      export CC=aarch64-linux-gnu-gcc
+      export CC=gcc
     elif [[ ${platform} == "linux/ppc64le" ]]; then
       export CGO_ENABLED=1
-      export CC=powerpc64le-linux-gnu-gcc
+      export CC=gcc
     fi
   fi
 }
openSUSE Build Service is sponsored by