File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,13 @@ be ignored in favor of only building the artifacts specified by command line.
44
44
the local crate's code along with all upstream dependencies. This output type
45
45
will create ` *.a ` files on Linux, macOS and Windows (MinGW), and ` *.lib ` files
46
46
on Windows (MSVC). This format is recommended for use in situations such as
47
- linking Rust code into an existing non-Rust application
48
- because it will not have dynamic dependencies on other Rust code.
47
+ linking Rust code into an existing non-Rust application because it will not
48
+ have dynamic dependencies on other Rust code.
49
+
50
+ Note that any dynamic dependencies that the static library may have (such as
51
+ dependencies on system libraries, or dependencies on Rust libraries that are
52
+ compiled as dynamic libraries) will have to be specified manually when
53
+ linking that static library from somewhere. The ` --print=native-static-libs ` flag may help with this.
49
54
50
55
* ` --crate-type=cdylib ` , ` #![crate_type = "cdylib"] ` - A dynamic system
51
56
library will be produced. This is used when compiling
You can’t perform that action at this time.
0 commit comments