config.toml 639 B

1234567891011121314
  1. [target.x86_64-pc-windows-msvc]
  2. rustflags = ["-Ctarget-feature=+crt-static"]
  3. [target.i686-pc-windows-msvc]
  4. rustflags = ["-C", "target-feature=+crt-static", "-C", "link-args=/NODEFAULTLIB:MSVCRT"]
  5. [target.'cfg(target_os="macos")']
  6. rustflags = [
  7. "-C", "link-args=-sectcreate __CGPreLoginApp __cgpreloginapp /dev/null",
  8. ]
  9. #[target.'cfg(target_os="linux")']
  10. # glibc-static required, this may fix https://github.com/rustdesk/rustdesk/issues/9103, but I do not want this big change
  11. # this is unlikely to help also, because the other so files still use libc dynamically
  12. #rustflags = [
  13. # "-C", "link-args=-Wl,-Bstatic -lc -Wl,-Bdynamic"
  14. #]