Browse code

Disable netgo for dynbinary builds

It's not necessary to use the netgo implementation for non-static builds. :)

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)

Tianon Gravi authored on 2014/06/20 05:35:30
Showing 1 changed files
... ...
@@ -40,5 +40,6 @@ fi
40 40
 
41 41
 (
42 42
 	export LDFLAGS_STATIC_DOCKER="-X github.com/dotcloud/docker/dockerversion.INITSHA1 \"$DOCKER_INITSHA1\" -X github.com/dotcloud/docker/dockerversion.INITPATH \"$DOCKER_INITPATH\""
43
+	export BUILDFLAGS=( "${BUILDFLAGS[@]/netgo /}" ) # disable netgo, since we don't need it for a dynamic binary
43 44
 	source "$(dirname "$BASH_SOURCE")/binary"
44 45
 )