From 79364a6583803c270ff5be1085434631aba30858 Mon Sep 17 00:00:00 2001 From: Hiroaki Yutani Date: Mon, 14 Sep 2020 23:13:16 +0900 Subject: [PATCH] Update the description of staticlib Now Windows MinGW uses `.a` extension for staticlib. https://github.com/rust-lang/rust/pull/70937 --- src/linkage.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/linkage.md b/src/linkage.md index 264d3f0..4a8ed96 100644 --- a/src/linkage.md +++ b/src/linkage.md @@ -41,10 +41,10 @@ be ignored in favor of only building the artifacts specified by command line. the compiler will never attempt to link to `staticlib` outputs. The purpose of this output type is to create a static library containing all of the local crate's code along with all upstream dependencies. The static - library is actually a `*.a` archive on linux and osx and a `*.lib` file on - windows. This format is recommended for use in situations such as linking - Rust code into an existing non-Rust application because it will not have - dynamic dependencies on other Rust code. + library is actually a `*.a` archive on linux and osx and windows(MinGW), and + a `*.lib` file on windows(MSVC). This format is recommended for use in + situations such as linking Rust code into an existing non-Rust application + because it will not have dynamic dependencies on other Rust code. * `--crate-type=cdylib`, `#[crate_type = "cdylib"]` - A dynamic system library will be produced. This is used when compiling