Partially fix Windows build with go-compile

Fix go-compile to not use buildmode pie for Windows.

See #1863

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-05-20 10:57:48 +01:00
parent a81a48629b
commit fc69bcf288
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ test -z $(find . -type f -name "*.go" -not -path "*/vendor/*" -not -name "*.pb.*
>&2 echo "go build..."
if [ "$GOOS" = "darwin" ]
if [ "$GOOS" = "darwin" -o "$GOOS" = "windows" ]
then
if [ -z "$ldflags" ]
then