diff --git a/build_mips.sh b/build_mips.sh new file mode 100644 index 00000000..df3fc57f --- /dev/null +++ b/build_mips.sh @@ -0,0 +1,6 @@ +go version +mips-linux-musl-gcc -v +go env -w GOPROXY=https://goproxy.cn,direct +go env -w GO111MODULE=auto +go mod tidy +GOOS=linux GOARCH=mips GOMIPS=softfloat CGO_ENABLED=1 CC=mips-linux-musl-gcc CXX=mips-linux-musl-g++ go build -ldflags "-s -w" -o zerobot \ No newline at end of file