diff options
Diffstat (limited to 'BUILD.md')
-rw-r--r-- | BUILD.md | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -4,4 +4,17 @@ | |||
4 | * cd tuntox | 4 | * cd tuntox |
5 | * make | 5 | * make |
6 | 6 | ||
7 | The 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. | 7 | The makefile creates a static binary by default. If you're not a fan of static binaries, remove `-static` from `LDFLAGS`. |
8 | |||
9 | 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`). | ||
10 | |||
11 | Static linking breaks hostname resolution, but IMHO the pros overweight the cons. | ||
12 | |||
13 | ## MacOS build | ||
14 | Basically 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 | |||
19 | If you'd like to build on Mac do: `make -f Makefile.mac` | ||
20 | |||