Index: docker/project/make/.dockerinit =================================================================== --- docker.orig/project/make/.dockerinit +++ docker/project/make/.dockerinit @@ -3,6 +3,7 @@ set -e # dockerinit still needs to be a static binary, even if docker is dynamic go build \ + -gccgoflags="-static-libgo" \ -o "$DEST/dockerinit-$VERSION" \ "${BUILDFLAGS[@]}" \ -ldflags " Index: docker/project/make/binary =================================================================== --- docker.orig/project/make/binary +++ docker/project/make/binary @@ -12,6 +12,7 @@ if [[ "$(uname -s)" == CYGWIN* ]]; then fi go build \ + -gccgoflags="-static-libgo" \ -o "$DEST/$BINARY_FULLNAME" \ "${BUILDFLAGS[@]}" \ -ldflags "