diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2023-05-17 23:53:04 +0200 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2023-06-07 19:30:37 +0100 |
| commit | 0304e0a5b0fafa1b3be46207c4651709eec478c5 (patch) | |
| tree | 7c6161f9a3005ad228b3a7a12252404ca9023227 /src/doc/rustc | |
| parent | c2ccc855e74aec03e434405eca3c247ee2432e53 (diff) | |
| download | rust-0304e0a5b0fafa1b3be46207c4651709eec478c5.tar.gz rust-0304e0a5b0fafa1b3be46207c4651709eec478c5.zip | |
Force all native libraries to be statically linked when linking a static binary
Diffstat (limited to 'src/doc/rustc')
| -rw-r--r-- | src/doc/rustc/src/command-line-arguments.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md index 3be4382b0a3..da3f4cba214 100644 --- a/src/doc/rustc/src/command-line-arguments.md +++ b/src/doc/rustc/src/command-line-arguments.md @@ -58,8 +58,8 @@ Example: `-l static:+whole-archive=mylib`. The kind of library and the modifiers can also be specified in a [`#[link]` attribute][link-attribute]. If the kind is not specified in the `link` -attribute or on the command-line, it will link a dynamic library if available, -otherwise it will use a static library. If the kind is specified on the +attribute or on the command-line, it will link a dynamic library by default, +except when building a static executable. If the kind is specified on the command-line, it will override the kind specified in a `link` attribute. The name used in a `link` attribute may be overridden using the form `-l |
