|
@@ -11,5 +11,7 @@ ln -sf dockerinit-$VERSION $DEST/dockerinit
|
|
|
export DOCKER_INITSHA1="$(sha1sum $DEST/dockerinit-$VERSION | cut -d' ' -f1)"
|
|
|
# exported so that "dyntest" can easily access it later without recalculating it
|
|
|
|
|
|
-go build -o $DEST/docker-$VERSION -ldflags "$LDFLAGS -X github.com/dotcloud/docker/utils.INITSHA1 \"$DOCKER_INITSHA1\"" $BUILDFLAGS ./docker
|
|
|
-echo "Created binary: $DEST/docker-$VERSION"
|
|
|
+(
|
|
|
+ export LDFLAGS_STATIC="-X github.com/dotcloud/docker/utils.INITSHA1 \"$DOCKER_INITSHA1\""
|
|
|
+ source "$(dirname "$BASH_SOURCE")/binary"
|
|
|
+)
|