Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GCC & binutils to osxcross #44

Open
abrodkin opened this issue Jul 12, 2020 · 0 comments
Open

Add GCC & binutils to osxcross #44

abrodkin opened this issue Jul 12, 2020 · 0 comments

Comments

@abrodkin
Copy link

osxcross allows to additionally build cross-GCC & cross-binutils for Darwin (macOS). This could be done as simple as:

./build_gcc.sh
./build_binutils.sh

One note though - Binutils are being installed in target/binutils folder1, not target where Clang & GCC are being put. And so additional location target/binutils/bin should be added in the PATH.

And with both GCC & Binutils built I may do such a fancy things as building GNU toolchain for multiple CPU architectures that will work on macOS (via process known as a "Canadian cross" with https://github.com/crosstool-ng/crosstool-ng). If of any interest I may explain how that could be easily done :)

If any testing is needed I'll be happy to help.

1As I learned it the hard way there's a good reason for that: some binaries have the same name in both Binutils & cctools while not really being equally good (I bumped into GNU's Binutils ar creating bad archive headers which later leads to linkage problems, see a very similar problem discussed here - golang/go#28796, once I have more time I'll try to see if that might be fixed - I guess it should just work in the end).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant