diff options
Diffstat (limited to 'recipes-containers/docker/docker-moby/0001-cli-use-go-cross-compiler.patch')
| -rw-r--r-- | recipes-containers/docker/docker-moby/0001-cli-use-go-cross-compiler.patch | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/recipes-containers/docker/docker-moby/0001-cli-use-go-cross-compiler.patch b/recipes-containers/docker/docker-moby/0001-cli-use-go-cross-compiler.patch index 9419d547..f065e184 100644 --- a/recipes-containers/docker/docker-moby/0001-cli-use-go-cross-compiler.patch +++ b/recipes-containers/docker/docker-moby/0001-cli-use-go-cross-compiler.patch | |||
| @@ -8,18 +8,15 @@ Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | |||
| 8 | git/cli/scripts/build/dynbinary | 2 +- | 8 | git/cli/scripts/build/dynbinary | 2 +- |
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) | 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 10 | 10 | ||
| 11 | diff --git git/cli/scripts/build/dynbinary git/cli/scripts/build/dynbinary | 11 | Index: git/cli/scripts/build/dynbinary |
| 12 | index 4feb7e71d8..f990d0e040 100755 | 12 | =================================================================== |
| 13 | --- git/cli/scripts/build/dynbinary | 13 | --- git.orig/cli/scripts/build/dynbinary |
| 14 | +++ git/cli/scripts/build/dynbinary | 14 | +++ git/cli/scripts/build/dynbinary |
| 15 | @@ -9,6 +9,6 @@ source ./scripts/build/.variables | 15 | @@ -19,6 +19,6 @@ |
| 16 | ;; | ||
| 17 | esac | ||
| 16 | 18 | ||
| 17 | echo "Building dynamically linked $TARGET" | 19 | -go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}" |
| 18 | export CGO_ENABLED=1 | 20 | +${GO} build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}" |
| 19 | -go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" -buildmode=pie "${SOURCE}" | ||
| 20 | +${GO} build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" -buildmode=pie "${SOURCE}" | ||
| 21 | 21 | ||
| 22 | ln -sf "$(basename "${TARGET}")" build/docker | 22 | ln -sf "$(basename "${TARGET}")" build/docker |
| 23 | -- | ||
| 24 | 2.19.1 | ||
| 25 | |||
