Kaynağa Gözat

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 11 yıl önce
ebeveyn
işleme
3f7909e996
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      hack/make/dynbinary

+ 1 - 0
hack/make/dynbinary

@@ -40,5 +40,6 @@ fi
 
 (
 	export LDFLAGS_STATIC_DOCKER="-X github.com/dotcloud/docker/dockerversion.INITSHA1 \"$DOCKER_INITSHA1\" -X github.com/dotcloud/docker/dockerversion.INITPATH \"$DOCKER_INITPATH\""
+	export BUILDFLAGS=( "${BUILDFLAGS[@]/netgo /}" ) # disable netgo, since we don't need it for a dynamic binary
 	source "$(dirname "$BASH_SOURCE")/binary"
 )