1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

-buildmode=pie is not supported on Linux on MIPS either

Signed-off-by: Kasper Fabæch Brandt <poizan@poizan.dk>
This commit is contained in:
Kasper Fabæch Brandt 2018-07-16 13:07:13 +02:00
parent 73d73ba962
commit daba5daf4f

View file

@ -50,10 +50,14 @@ if [ "$(go env GOOS)/$(go env GOARCH)" != "$(go env GOHOSTOS)/$(go env GOHOSTARC
esac
fi
# -buildmode=pie is not supported on Windows.
if [ "$(go env GOOS)" != "windows" ]; then
BUILDFLAGS+=( "-buildmode=pie" )
fi
# -buildmode=pie is not supported on Windows and Linux on mips.
case "$(go env GOOS)/$(go env GOARCH)" in
windows/*|linux/mips*)
;;
*)
BUILDFLAGS+=( "-buildmode=pie" )
;;
esac
echo "Building: $DEST/$BINARY_FULLNAME"
go build \