Browse code

Add line to hack/make/cross to cross-compile pkgs directory

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>

Aaron Lehmann authored on 2017/03/30 07:58:03
Showing 1 changed files
... ...
@@ -31,6 +31,11 @@ for platform in $DOCKER_CROSSPLATFORMS; do
31 31
 
32 32
 		if [ "$GOOS" != "solaris" ]; then
33 33
 			# TODO. Solaris cannot be cross build because of CGO calls.
34
+
35
+			# go install docker/docker/pkg packages to ensure that
36
+			# they build cross platform.
37
+			go install github.com/docker/docker/pkg/...
38
+
34 39
 			if [ -z "${daemonSupporting[$platform]}" ]; then
35 40
 				# we just need a simple client for these platforms
36 41
 				export LDFLAGS_STATIC_DOCKER=""