How to get all GNU tools on MacOS 11?

I already know about binutils brew install binutils, but it is missing a specific command I need: ld, as mentioned in this other question of mine: MacOS equivalent for Ubuntu Linker (ld) command?

I am aware that MacOS Command Line Tools contains ld, but it does not feature the options and parameters that my specific case requires.

Thank you.


Solution 1:

It wouldn't make sense to install the GNU ld command on macOS, unless you're doing some sort of cross-compiling, which you're not.

Basically, the GNU version of ld doesn't know how to make executables that can run on macOS. Hypothetically, installing and using it, would not produce anything that works.

You will want to use the standard macOS ld command instead.