Merge pull request #15861 from brahmaroutu/gccgo_x86

Enable building Docker with gcc-go on x86
This commit is contained in:
Jess Frazelle
2015-09-16 13:29:02 -07:00
5 changed files with 90 additions and 3 deletions
+5 -1
View File
@@ -23,9 +23,13 @@ if [ "$BUILDFLAGS_FILE" ]; then
readarray -t BUILDFLAGS < "$BUILDFLAGS_FILE"
fi
if [[ "$(go version)" =~ "gccgo" ]]; then
GCCGOFLAGS="-gccgoflags= -lpthread -ldl "
fi
if ! (
cd "$dir"
go test "${testcover[@]}" -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS -c
go test "${testcover[@]}" "$GCCGOFLAGS" -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS -c
); then
exit 1
fi