diff options
Diffstat (limited to 'recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch')
-rw-r--r-- | recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch b/recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch new file mode 100644 index 00000000..62d05210 --- /dev/null +++ b/recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From 9cbb2d523d481053d405ebac830c2074b00d3417 Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen.kooi@linaro.org> | ||
3 | Date: Mon, 23 Jul 2018 15:28:02 +0200 | ||
4 | Subject: [PATCH] hack/lib/golang.sh: use CC from environment | ||
5 | |||
6 | Toolchain tupples differs, especially when using vendor provides ones. | ||
7 | |||
8 | Upstream-status: Inappropriate [embedded specific] | ||
9 | Signed-off-by: Koen Kooi <koen.kooi@linaro.org> | ||
10 | --- | ||
11 | hack/lib/golang.sh | 4 ---- | ||
12 | 1 file changed, 4 deletions(-) | ||
13 | |||
14 | diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh | ||
15 | index c5d4634..563e2b4b 100755 | ||
16 | --- a/src/import/hack/lib/golang.sh | ||
17 | +++ b/src/import/hack/lib/golang.sh | ||
18 | @@ -278,19 +278,15 @@ kube::golang::set_platform_envs() { | ||
19 | case "${platform}" in | ||
20 | "linux/arm") | ||
21 | export CGO_ENABLED=1 | ||
22 | - export CC=arm-linux-gnueabihf-gcc | ||
23 | ;; | ||
24 | "linux/arm64") | ||
25 | export CGO_ENABLED=1 | ||
26 | - export CC=aarch64-linux-gnu-gcc | ||
27 | ;; | ||
28 | "linux/ppc64le") | ||
29 | export CGO_ENABLED=1 | ||
30 | - export CC=powerpc64le-linux-gnu-gcc | ||
31 | ;; | ||
32 | "linux/s390x") | ||
33 | export CGO_ENABLED=1 | ||
34 | - export CC=s390x-linux-gnu-gcc | ||
35 | ;; | ||
36 | esac | ||
37 | fi | ||
38 | -- | ||
39 | 2.9.5 | ||
40 | |||