How to cross build neovim for aarch64 with static linking

Hi, I wanted to build neovim for aarch64-linux-gnu with static linking so there wasn’t be any library dependency issues when I use this on the aarch64 server.
Could I get some instructions on this?
In particular I already installed the aarch64-linux-musl-gcc as the compiler.
Could I get the command line that needs to be executed for cmake to generate the correct make file?
Thanks for the help.

1 Like