diff --git a/0003-enable-CGO-to-make-SP-compile-option-take-effact.patch b/0003-enable-CGO-to-make-SP-compile-option-take-effact.patch new file mode 100644 index 0000000000000000000000000000000000000000..02f3bdd9e82abe283dc60df8ccffd34dcfc2efa1 --- /dev/null +++ b/0003-enable-CGO-to-make-SP-compile-option-take-effact.patch @@ -0,0 +1,26 @@ +From 724759a2f489a4d8aa90c0a563d24d6bc605fcba Mon Sep 17 00:00:00 2001 +From: WangFengTu +Date: Wed, 24 Mar 2021 10:52:00 +0800 +Subject: [PATCH] enable CGO to make SP compile option take effact + +Signed-off-by: WangFengTu +--- + hack/lib/golang.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh +index 6d467a8e..0acafa50 100755 +--- a/hack/lib/golang.sh ++++ b/hack/lib/golang.sh +@@ -706,7 +706,7 @@ kube::golang::build_binaries_for_platform() { + -ldflags "${goldflags:-}" + -tags "${gotags:-}" + ) +- CGO_ENABLED=0 kube::golang::build_some_binaries "${statics[@]}" ++ kube::golang::build_some_binaries "${statics[@]}" + fi + + if [[ "${#nonstatics[@]}" != 0 ]]; then +-- +2.25.1 + diff --git a/kubernetes.spec b/kubernetes.spec index 9cbd32921eeee693d24df7d1a6ebec731ef1018d..865b79662952d92e867e933dd2113bdf30214b27 100644 --- a/kubernetes.spec +++ b/kubernetes.spec @@ -3,7 +3,7 @@ Name: kubernetes Version: 1.20.2 -Release: 4 +Release: 5 Summary: Container cluster management License: ASL 2.0 URL: https://k8s.io/kubernetes @@ -26,6 +26,7 @@ Source15: kubernetes.conf Patch6000: 0001-kubelet-support-exec-websocket-protocol.patch Patch6001: 0002-fix-compile-options.patch +Patch6002: 0003-enable-CGO-to-make-SP-compile-option-take-effact.patch %description Container cluster management.