急切寻求rust编译问题帮助(archlinux, openssl)
拉取了rustbuster的v3.0.3版本文件, 二进制文件无法使用, 执行结果如下:
bash
rootcn@archlinux target$ ./rustbusterv3.0.3x8664u
交叉编译需要指定target选项,比如:
# in config.toml
[target.x86_64-unknown-linux-musl]
rustflags = [
"-C", "linker-flavor=gcc", "-C", "link-self-contained=no",
]
# zig cc -target x86_64-linux-musl
linker = ".cargo/musl-zcc.bat"