Skip to content

Commit bdfa4b4

Browse files
authored
Document static lib dependencies (#213)
1 parent 542eacc commit bdfa4b4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ To build in debug mode:
2323

2424
make PROFILE=debug
2525

26+
To link against the resulting library, on **Linux**:
27+
28+
-lrustls -lgcc_s -lutil -lrt -lpthread -lm -ldl -lc
29+
30+
To link against the resulting library, on **macOS**:
31+
32+
-lrustls -framework Security -liconv -lSystem -lresolv -lc -lm -liconv
33+
34+
If the linking instructions above go out of date, [you can get an up-to-date list
35+
via](https://doc.rust-lang.org/rustc/command-line-arguments.html#--print-print-compiler-information):
36+
37+
RUSTFLAGS="--print native-static-libs" cargo build
38+
2639
# Overview
2740

2841
Rustls doesn't do any I/O on its own. It provides the protocol handling, and

0 commit comments

Comments
 (0)