@@ -38,12 +38,12 @@ Static linking refers to the process of creating output that contain all
38
38
required libraries and so don't need libraries installed on every system where
39
39
you want to use your compiled project. Pure-Rust dependencies are statically
40
40
linked by default so you can use created binaries and libraries without
41
- installing the Rust everywhere. By contrast, native libraries
42
- (e.g. ` libc ` and ` libm ` ) usually dynamically linked, but it is possible to
41
+ installing Rust everywhere. By contrast, native libraries
42
+ (e.g. ` libc ` and ` libm ` ) are usually dynamically linked, but it is possible to
43
43
change this and statically link them as well.
44
44
45
- Linking is a very platform dependent topic — on some platforms, static linking
46
- may not be possible at all ! This section assumes some basic familiarity with
45
+ Linking is a very platform- dependent topic, and static linking may not even be
46
+ possible on some platforms ! This section assumes some basic familiarity with
47
47
linking on your platform of choice.
48
48
49
49
## Linux
@@ -71,8 +71,7 @@ Dynamic linking on Linux can be undesirable if you wish to use new library
71
71
features on old systems or target systems which do not have the required
72
72
dependencies for your program to run.
73
73
74
- Static linking is supported via an alternative ` libc ` , ` musl ` - this must be
75
- enabled at Rust compile-time with some prerequisites available. You can compile
74
+ Static linking is supported via an alternative ` libc ` , ` musl ` . You can compile
76
75
your own version of Rust with ` musl ` enabled and install it into a custom
77
76
directory with the instructions below:
78
77
@@ -123,7 +122,7 @@ $ du -h musldist/bin/rustc
123
122
```
124
123
125
124
You now have a build of a ` musl ` -enabled Rust! Because we've installed it to a
126
- custom prefix we need to make sure our system can the binaries and appropriate
125
+ custom prefix we need to make sure our system can find the binaries and appropriate
127
126
libraries when we try and run it:
128
127
129
128
``` text
0 commit comments