Fix several very minor consistency issues

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
This commit is contained in:
Tianon Gravi 2015-03-17 21:17:28 -06:00
parent a5269223a7
commit ae61593417
6 changed files with 7 additions and 5 deletions

View File

@ -14,6 +14,7 @@ go build \
-extldflags \"$EXTLDFLAGS_STATIC\" -extldflags \"$EXTLDFLAGS_STATIC\"
" \ " \
./dockerinit ./dockerinit
echo "Created binary: $DEST/dockerinit-$VERSION" echo "Created binary: $DEST/dockerinit-$VERSION"
ln -sf "dockerinit-$VERSION" "$DEST/dockerinit" ln -sf "dockerinit-$VERSION" "$DEST/dockerinit"

View File

@ -4,6 +4,7 @@ set -e
IAMSTATIC="true" IAMSTATIC="true"
source "$(dirname "$BASH_SOURCE")/.go-autogen" source "$(dirname "$BASH_SOURCE")/.go-autogen"
# dockerinit still needs to be a static binary, even if docker is dynamic
go build --compiler=gccgo \ go build --compiler=gccgo \
-o "$DEST/dockerinit-$VERSION" \ -o "$DEST/dockerinit-$VERSION" \
"${BUILDFLAGS[@]}" \ "${BUILDFLAGS[@]}" \

View File

@ -2,7 +2,7 @@
# see test-integration-cli for example usage of this script # see test-integration-cli for example usage of this script
export PATH="$DEST/../binary:$DEST/../dynbinary:$DEST/../gccgo:$PATH" export PATH="$DEST/../binary:$DEST/../dynbinary:$DEST/../gccgo:$DEST/../dyngccgo:$PATH"
if ! command -v docker &> /dev/null; then if ! command -v docker &> /dev/null; then
echo >&2 'error: binary or dynbinary must be run before .integration-daemon-start' echo >&2 'error: binary or dynbinary must be run before .integration-daemon-start'

1
hack/make/binary Executable file → Normal file
View File

@ -21,6 +21,7 @@ go build \
$LDFLAGS_STATIC_DOCKER $LDFLAGS_STATIC_DOCKER
" \ " \
./docker ./docker
echo "Created binary: $DEST/$BINARY_FULLNAME" echo "Created binary: $DEST/$BINARY_FULLNAME"
ln -sf "$BINARY_FULLNAME" "$DEST/docker$BINARY_EXTENSION" ln -sf "$BINARY_FULLNAME" "$DEST/docker$BINARY_EXTENSION"

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
set -e set -e
DEST=$1 DEST=$1

5
hack/make/gccgo Executable file → Normal file
View File

@ -8,10 +8,10 @@ BINARY_FULLNAME="$BINARY_NAME$BINARY_EXTENSION"
source "$(dirname "$BASH_SOURCE")/.go-autogen" source "$(dirname "$BASH_SOURCE")/.go-autogen"
go build --compiler=gccgo \ go build -compiler=gccgo \
-o "$DEST/$BINARY_FULLNAME" \ -o "$DEST/$BINARY_FULLNAME" \
"${BUILDFLAGS[@]}" \ "${BUILDFLAGS[@]}" \
--gccgoflags " -gccgoflags "
-g -g
$EXTLDFLAGS_STATIC_DOCKER $EXTLDFLAGS_STATIC_DOCKER
-Wl,--no-export-dynamic -Wl,--no-export-dynamic
@ -19,7 +19,6 @@ go build --compiler=gccgo \
" \ " \
./docker ./docker
echo "Created binary: $DEST/$BINARY_FULLNAME" echo "Created binary: $DEST/$BINARY_FULLNAME"
ln -sf "$BINARY_FULLNAME" "$DEST/docker$BINARY_EXTENSION" ln -sf "$BINARY_FULLNAME" "$DEST/docker$BINARY_EXTENSION"