Skip to content

Commit

Permalink
Update the description of staticlib
Browse files Browse the repository at this point in the history
Now Windows MinGW uses `.a` extension for staticlib.

rust-lang/rust#70937
  • Loading branch information
yutannihilation authored and ldm0 committed Sep 16, 2020
1 parent 1e19599 commit 71dff44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/linkage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71dff44

Please sign in to comment.