mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
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.
This commit is contained in:
parent
259729e03d
commit
0639c396b9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue