diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md index 3be4382b0a3aa..f2a07b13ff80e 100644 --- a/src/doc/rustc/src/command-line-arguments.md +++ b/src/doc/rustc/src/command-line-arguments.md @@ -62,11 +62,15 @@ 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 command-line, it will override the kind specified in a `link` attribute. +If you don't specify `KIND`, no linkage modifiers will be applied. +For instance, [`+bundle` linkage modifier][bundle-modifier] won't be used in conjunction with static library by default. + The name used in a `link` attribute may be overridden using the form `-l ATTR_NAME:LINK_NAME` where `ATTR_NAME` is the name in the `link` attribute, and `LINK_NAME` is the name of the actual library that will be linked. [link-attribute]: ../reference/items/external-blocks.html#the-link-attribute +[bundle-modifier]: #linking-modifiers-bundle ### Linking modifiers: `whole-archive`