Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 1.08 KB

BUILD.md

File metadata and controls

21 lines (13 loc) · 1.08 KB

The makefile creates a static binary by default. If you're not a fan of static binaries, make tuntox_nostatic.

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.

c-toxcore is the only direct dependency. c-toxcore requires libsodium and libevent_pthreads at the time of writing this, please refer to their install instructions for the current dependencies. Also pkg-config is required.

MacOS build

Basically the same as above but:

  • static compiling is removed - you can't do this on MacOS platform (no, just don't)
  • because of removed -static you can't resolve hostnames (you can always put it into hosts file in your system)

If you'd like to build on Mac do: make -f Makefile.mac