Currently macOS make file https://github.com/zerotier/ZeroTierOne/blob/544809e738882d8db8b54671d42d27fdcd8baaf2/make-mac.mk hardcodes compiler, architectures, forces rusty components, bundled libs and Homebrew-specific paths.
On the other hand, Linux version has proper arch and compiler detection, uses rusty stuff conditionally and allows to use external miniupnpc and libnatpmp.
It is desirable to make macOS build, likewise, properly configurable, so that a user does not need to fix targets manually and patch out hardcoded choices and flags.
Currently macOS make file https://github.com/zerotier/ZeroTierOne/blob/544809e738882d8db8b54671d42d27fdcd8baaf2/make-mac.mk hardcodes compiler, architectures, forces rusty components, bundled libs and Homebrew-specific paths.
On the other hand, Linux version has proper arch and compiler detection, uses rusty stuff conditionally and allows to use external miniupnpc and libnatpmp.
It is desirable to make macOS build, likewise, properly configurable, so that a user does not need to fix targets manually and patch out hardcoded choices and flags.