summaryrefslogtreecommitdiffstats
path: root/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch')
-rw-r--r--recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch b/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch
index c19d9f50..c10e69d3 100644
--- a/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch
+++ b/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch
@@ -14,12 +14,12 @@ Index: git/src/import/hack/make/.binary
14=================================================================== 14===================================================================
15--- git.orig/src/import/hack/make/.binary 15--- git.orig/src/import/hack/make/.binary
16+++ git/src/import/hack/make/.binary 16+++ git/src/import/hack/make/.binary
17@@ -81,7 +81,7 @@ 17@@ -66,7 +66,7 @@
18 if [ -n "$DOCKER_DEBUG" ]; then
19 set -x
20 fi
21- go build -o "$DEST/$BINARY_FULLNAME" "${BUILDFLAGS[@]}" -ldflags "$LDFLAGS $LDFLAGS_STATIC $DOCKER_LDFLAGS" ${GO_PACKAGE}
22+ ${GO} build -trimpath -o "$DEST/$BINARY_FULLNAME" "${BUILDFLAGS[@]}" -ldflags "$LDFLAGS $LDFLAGS_STATIC $DOCKER_LDFLAGS" ${GO_PACKAGE}
23 )
18 24
19 echo "Building: $DEST/$BINARY_FULLNAME" 25 echo "Created binary: $DEST/$BINARY_FULLNAME"
20 echo "GOOS=\"${GOOS}\" GOARCH=\"${GOARCH}\" GOARM=\"${GOARM}\""
21- go build \
22+ ${GO} build -trimpath \
23 -o "$DEST/$BINARY_FULLNAME" \
24 "${BUILDFLAGS[@]}" \
25 -ldflags "