mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 13:41:36 +00:00
adding a Dockerfile.gccgo to use gccgo compiler instead of go compiler.
temporarily disabling registry builds as crypto package is broken with gccgo. Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user