mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
kubernetes: make CC for amd64 match other architectures
Change 0001-hack-lib-golang.sh-use-CC-from-environment.patch to also remove the 'export CC=xxx' for amd64. The original patch is a little strange, it removes such statements for other archs but leaves amd64 untouched. If we're using CC from our environment, we use it for all targets. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
8fcd817417
commit
a969fd9041
|
@ -1,21 +1,25 @@
|
||||||
From 9cbb2d523d481053d405ebac830c2074b00d3417 Mon Sep 17 00:00:00 2001
|
From 116ccf93eef322db23e3bd4f35b12be09ebfbde5 Mon Sep 17 00:00:00 2001
|
||||||
From: Koen Kooi <koen.kooi@linaro.org>
|
From: Koen Kooi <koen.kooi@linaro.org>
|
||||||
Date: Mon, 23 Jul 2018 15:28:02 +0200
|
Date: Mon, 23 Jul 2018 15:28:02 +0200
|
||||||
Subject: [PATCH] hack/lib/golang.sh: use CC from environment
|
Subject: [PATCH 1/2] hack/lib/golang.sh: use CC from environment
|
||||||
|
|
||||||
Toolchain tupples differs, especially when using vendor provides ones.
|
Toolchain tupples differs, especially when using vendor provides ones.
|
||||||
|
|
||||||
Upstream-status: Inappropriate [embedded specific]
|
Upstream-status: Inappropriate [embedded specific]
|
||||||
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
|
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
|
||||||
---
|
---
|
||||||
hack/lib/golang.sh | 4 ----
|
hack/lib/golang.sh | 5 -----
|
||||||
1 file changed, 4 deletions(-)
|
1 file changed, 5 deletions(-)
|
||||||
|
|
||||||
Index: kubernetes-v1.21.1+git45da3fc33872083fb225c1a8c4d03e530d6f7630/hack/lib/golang.sh
|
diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
|
||||||
===================================================================
|
index fb97ee76783..0ed2d719dd1 100755
|
||||||
--- kubernetes-v1.21.1+git45da3fc33872083fb225c1a8c4d03e530d6f7630.orig/hack/lib/golang.sh
|
--- a/hack/lib/golang.sh
|
||||||
+++ kubernetes-v1.21.1+git45da3fc33872083fb225c1a8c4d03e530d6f7630/hack/lib/golang.sh
|
+++ b/hack/lib/golang.sh
|
||||||
@@ -414,19 +414,15 @@
|
@@ -419,23 +419,18 @@ kube::golang::set_platform_envs() {
|
||||||
|
case "${platform}" in
|
||||||
|
"linux/amd64")
|
||||||
|
export CGO_ENABLED=1
|
||||||
|
- export CC=${KUBE_LINUX_AMD64_CC:-x86_64-linux-gnu-gcc}
|
||||||
;;
|
;;
|
||||||
"linux/arm")
|
"linux/arm")
|
||||||
export CGO_ENABLED=1
|
export CGO_ENABLED=1
|
||||||
|
@ -35,3 +39,6 @@ Index: kubernetes-v1.21.1+git45da3fc33872083fb225c1a8c4d03e530d6f7630/hack/lib/g
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
--
|
||||||
|
2.37.1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user