mirror of https://github.com/docker/cli.git
19 lines
353 B
Plaintext
19 lines
353 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
#
|
||
|
# Build a static binary for the host OS/ARCH
|
||
|
#
|
||
|
|
||
|
set -eu -o pipefail
|
||
|
|
||
|
source ./scripts/build/.variables
|
||
|
|
||
|
export CGO_ENABLED=1
|
||
|
export GOOS=darwin
|
||
|
export GOARCH=amd64
|
||
|
export CC=o64-clang
|
||
|
export CXX=o64-clang++
|
||
|
export LDFLAGS="$LDFLAGS -linkmode external -s"
|
||
|
export LDFLAGS_STATIC_DOCKER='-extld='${CC}
|
||
|
|
||
|
source ./scripts/build/plugins
|