github.com/lafolle/docker@v1.6.0/hack/make/gccgo (about) 1 #!/bin/bash 2 set -e 3 4 DEST=$1 5 BINARY_NAME="docker-$VERSION" 6 BINARY_EXTENSION="$(binary_extension)" 7 BINARY_FULLNAME="$BINARY_NAME$BINARY_EXTENSION" 8 9 source "$(dirname "$BASH_SOURCE")/.go-autogen" 10 11 go build -compiler=gccgo \ 12 -o "$DEST/$BINARY_FULLNAME" \ 13 "${BUILDFLAGS[@]}" \ 14 -gccgoflags " 15 -g 16 $EXTLDFLAGS_STATIC_DOCKER 17 -Wl,--no-export-dynamic 18 -ldl 19 " \ 20 ./docker 21 22 echo "Created binary: $DEST/$BINARY_FULLNAME" 23 ln -sf "$BINARY_FULLNAME" "$DEST/docker$BINARY_EXTENSION" 24 25 hash_files "$DEST/$BINARY_FULLNAME"