The goal is to get a binutils package that closely mimics the linux one. Currently we use cctools which is fairly close, but is missing tools like c++filt (apple's cxxfilt package is just gnu binutils), has slightly different options for tools they have in common (our stdenv needs to be reminded not to pass -s to strip, for example), and has extra tools that are not in binutils like libtool. There are other mac-specific things that might make sense to leave in (e.g., install_name_tool, although I could be persuaded that we should abstract over patchelf...)
Anyway, I think we should probably make a merged darwin binutils package that pulls ld, as from cctools, and then others from gnu binutils. We'd probably want to split libtool out into a separate output to avoid getting weirdness there.
The goal is to get a
binutilspackage that closely mimics the linux one. Currently we usecctoolswhich is fairly close, but is missing tools likec++filt(apple's cxxfilt package is just gnu binutils), has slightly different options for tools they have in common (our stdenv needs to be reminded not to pass-stostrip, for example), and has extra tools that are not in binutils likelibtool. There are other mac-specific things that might make sense to leave in (e.g.,install_name_tool, although I could be persuaded that we should abstract overpatchelf...)Anyway, I think we should probably make a merged darwin binutils package that pulls
ld,asfrom cctools, and then others from gnu binutils. We'd probably want to split libtool out into a separate output to avoid getting weirdness there.