github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/hack/make/dynbinary-daemon (about)

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