mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-23 19:49:05 +08:00
15 lines
639 B
TOML
15 lines
639 B
TOML
[target.x86_64-pc-windows-msvc]
|
|
rustflags = ["-Ctarget-feature=+crt-static"]
|
|
[target.i686-pc-windows-msvc]
|
|
rustflags = ["-C", "target-feature=+crt-static", "-C", "link-args=/NODEFAULTLIB:MSVCRT"]
|
|
[target.'cfg(target_os="macos")']
|
|
rustflags = [
|
|
"-C", "link-args=-sectcreate __CGPreLoginApp __cgpreloginapp /dev/null",
|
|
]
|
|
#[target.'cfg(target_os="linux")']
|
|
# glibc-static required, this may fix https://github.com/rustdesk/rustdesk/issues/9103, but I do not want this big change
|
|
# this is unlikely to help also, because the other so files still use libc dynamically
|
|
#rustflags = [
|
|
# "-C", "link-args=-Wl,-Bstatic -lc -Wl,-Bdynamic"
|
|
#]
|