Files
docker-cli/components/engine/hack/make/binary
Tianon Gravi abf7c9daea Refactor the handling of static-related build flags
This is as discussed with @shykes on IRC
Upstream-commit: d7897508516c05e7ffea5b96053ec80c7771d777
Component: engine
2013-10-25 15:13:25 -07:00

7 lines
241 B
Bash

#!/bin/sh
DEST=$1
go build -o $DEST/docker-$VERSION -ldflags "$LDFLAGS -linkmode external -extldflags \"-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files\"" $BUILDFLAGS ./docker
echo "Created binary: $DEST/docker-$VERSION"