mirror of https://github.com/docker/cli.git
15 lines
336 B
Bash
Executable File
15 lines
336 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Build a dynamically linked binary for the host OS/ARCH
|
|
#
|
|
|
|
set -eu -o pipefail
|
|
|
|
source ./scripts/build/.variables
|
|
|
|
echo "Building dynamically linked $TARGET"
|
|
export CGO_ENABLED=1
|
|
go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" -buildmode=pie "${SOURCE}"
|
|
|
|
ln -sf "$(basename "${TARGET}")" build/docker
|