diff options
Diffstat (limited to 'recipes-containers/docker/docker-moby/0001-dynbinary-use-go-cross-compiler.patch')
| -rw-r--r-- | recipes-containers/docker/docker-moby/0001-dynbinary-use-go-cross-compiler.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-containers/docker/docker-moby/0001-dynbinary-use-go-cross-compiler.patch b/recipes-containers/docker/docker-moby/0001-dynbinary-use-go-cross-compiler.patch new file mode 100644 index 00000000..d9cdfb01 --- /dev/null +++ b/recipes-containers/docker/docker-moby/0001-dynbinary-use-go-cross-compiler.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | From bbf600cc4d46c3f7ec0c1b486790a2402d41f550 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
| 3 | Date: Tue, 30 Jun 2020 22:23:33 -0400 | ||
| 4 | Subject: [PATCH] dynbinary: use go cross compiler | ||
| 5 | |||
| 6 | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
| 7 | --- | ||
| 8 | hack/make/.binary | 2 +- | ||
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 10 | |||
| 11 | diff --git a/src/import/hack/make/.binary b/src/import/hack/make/.binary | ||
| 12 | index 53de6749e5..47ab2a754f 100644 | ||
| 13 | --- a/src/import/hack/make/.binary | ||
| 14 | +++ b/src/import/hack/make/.binary | ||
| 15 | @@ -81,7 +81,7 @@ esac | ||
| 16 | |||
| 17 | echo "Building: $DEST/$BINARY_FULLNAME" | ||
| 18 | echo "GOOS=\"${GOOS}\" GOARCH=\"${GOARCH}\" GOARM=\"${GOARM}\"" | ||
| 19 | -go build \ | ||
| 20 | +${GO} build \ | ||
| 21 | -o "$DEST/$BINARY_FULLNAME" \ | ||
| 22 | "${BUILDFLAGS[@]}" \ | ||
| 23 | -ldflags " | ||
| 24 | -- | ||
| 25 | 2.19.1 | ||
| 26 | |||
