summaryrefslogtreecommitdiff
path: root/BUILD.md
diff options
context:
space:
mode:
Diffstat (limited to 'BUILD.md')
-rw-r--r--BUILD.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/BUILD.md b/BUILD.md
index c0d340c..5de078c 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -4,4 +4,17 @@
4* cd tuntox 4* cd tuntox
5* make 5* make
6 6
7The makefile creates a static binary by default. If you're not a fan of static binaries, remove "-static" from LDFLAGS. One reason to do so may be if you'd like to resolve hostnames on the tuntox server (invoke client with -L 80:reddit.com:80 instead of -L 80:198.41.208.138:80). Static linking breaks hostname resolution, but IMHO the pros overweight the cons. 7The makefile creates a static binary by default. If you're not a fan of static binaries, remove `-static` from `LDFLAGS`.
8
9One reason to do so may be if you'd like to resolve hostnames on the tuntox server (invoke client with `-L 80:reddit.com:80` instead of `-L 80:198.41.208.138:80`).
10
11Static linking breaks hostname resolution, but IMHO the pros overweight the cons.
12
13## MacOS build
14Basically the same as above but:
15
16* static compiling is removed - you can't do this on MacOS platform (no, just don't)
17* because of removed `-static` you can't resolve hostnames (you can always put it into `hosts` file in your system)
18
19If you'd like to build on Mac do: `make -f Makefile.mac`
20