From 0639c396b93f8cd19e7815fd2e7ec9b4d9328a58 Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Mon, 27 Feb 2023 14:05:10 +0100 Subject: [PATCH] add CGO_ENABLED=0 in go install command because users may run this on their local machine, then copy the binary the their server. there is a good chance that binary won't start on linux/amd64 when compiled with cgo due to missing glibc symbols. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 00c9d99..9a2c871 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ You can easily (cross) compile mox if you have a recent Go toolchain installed (see "go version", it must be >= 1.19; otherwise, see https://go.dev/dl/ or https://go.dev/doc/manage-install and $HOME/go/bin): - GOBIN=$PWD go install github.com/mjl-/mox@latest + GOBIN=$PWD CGO_ENABLED=0 go install github.com/mjl-/mox@latest Or you can download a binary built with the latest Go toolchain from https://beta.gobuilds.org/github.com/mjl-/mox, and symlink or rename it to