github.com/noxiouz/docker@v0.7.3-0.20160629055221-3d231c78e8c5/hack/make/dynbinary-daemon (about)

     1  #!/bin/bash
     2  set -e
     3  
     4  (
     5  	export BINARY_SHORT_NAME='dockerd'
     6  	export SOURCE_PATH='./cmd/dockerd'
     7  	export IAMSTATIC='false'
     8  	export LDFLAGS_STATIC_DOCKER=''
     9  	export BUILDFLAGS=( "${BUILDFLAGS[@]/netgo /}" ) # disable netgo, since we don't need it for a dynamic binary
    10  	export BUILDFLAGS=( "${BUILDFLAGS[@]/static_build /}" ) # we're not building a "static" binary here
    11  	source "${MAKEDIR}/.binary"
    12  )