Windows: Remove linkmode internal hack

Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: 6ca5a2c476f548b55d68daa4264b4ef9e6c2696d
Component: engine
This commit is contained in:
John Howard
2016-01-13 16:27:53 -08:00
parent 6450022b83
commit f048e88551
3 changed files with 11 additions and 10 deletions

View File

@ -55,5 +55,12 @@ if [ "$(go env GOOS)" = 'windows' ]; then
rsrc \
-manifest hack/make/.resources-windows/docker.exe.manifest \
-ico hack/make/.resources-windows/docker.ico \
-o autogen/winresources/rsrc.syso > /dev/null
-arch "amd64" \
-o autogen/winresources/rsrc_amd64.syso > /dev/null
rsrc \
-manifest hack/make/.resources-windows/docker.exe.manifest \
-ico hack/make/.resources-windows/docker.ico \
-arch "386" \
-o autogen/winresources/rsrc_386.syso > /dev/null
fi

View File

@ -14,17 +14,10 @@ if [ "$(go env GOOS)/$(go env GOARCH)" != "$(go env GOHOSTOS)/$(go env GOHOSTARC
windows/amd64)
export CC=x86_64-w64-mingw32-gcc
export CGO_ENABLED=1
export LDFLAGS_STATIC_DOCKER="$LDFLAGS_STATIC_DOCKER -linkmode internal -extld=${CC}"
;;
esac
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
if [ "$(go env GOOS)" == "linux" ] ; then
case "$(go env GOARCH)" in
arm*|386)