mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: Native daemon build
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
a154b95d06
commit
d92f7f42b2
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,12 @@ if [ "$(go env GOOS)/$(go env GOARCH)" != "$(go env GOHOSTOS)/$(go env GOHOSTARC
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$(go env GOHOSTOS)/$(go env GOHOSTARCH)" == "windows/amd64" ] && [ "$(go env GOOS)" == "windows" ]; then
|
||||||
|
# native compilation of Windows on Windows with golang 1.5+ needs linkmode internal
|
||||||
|
# https://github.com/golang/go/issues/13070
|
||||||
|
export LDFLAGS_STATIC_DOCKER="$LDFLAGS_STATIC_DOCKER -linkmode=internal"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Building: $DEST/$BINARY_FULLNAME"
|
echo "Building: $DEST/$BINARY_FULLNAME"
|
||||||
go build \
|
go build \
|
||||||
-o "$DEST/$BINARY_FULLNAME" \
|
-o "$DEST/$BINARY_FULLNAME" \
|
||||||
|
|
Loading…
Reference in a new issue