If you are building for linux, why not use linux tools, in a linux container (which runs on a linux kernel running on a hypervisor?) Apple even provides a Container tool, Containerization framework, etc.
For using Unix tools in native macOS workflows, ports systems like homebrew, macports, pkgsrc, etc. are a decent option.
For using Unix tools in native macOS workflows, ports systems like homebrew, macports, pkgsrc, etc. are a decent option.