github.com/docker/docker-ce@v17.12.1-ce-rc2+incompatible/components/cli/scripts/build/dynbinary (about)

     1  #!/usr/bin/env bash
     2  #
     3  # Build a dynamically linked binary for the host OS/ARCH
     4  #
     5  
     6  set -eu -o pipefail
     7  
     8  source ./scripts/build/.variables
     9  
    10  echo "Building dynamically linked $TARGET"
    11  export CGO_ENABLED=1
    12  go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" "${SOURCE}"
    13  
    14  ln -sf "$(basename "${TARGET}")" build/docker