tpoechtrager / osxcross

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)
GNU General Public License v2.0
2.8k stars 318 forks source link

Usable OS X Cross PPC Toolchain with Mainline GCC-5.5.0 #390

Closed jlsantiago0 closed 10 months ago

jlsantiago0 commented 11 months ago

Some minor changes to the build_gcc.sh script to get mainline GCC-5.5.0 working with the ppc-test branch.

Also documentation describing how I created a usable toolchain that seems to be working flawlessly. It can build C and C++ up C++14 code that runs on my iBook G4.

The toolchain also builds for PowerPC64, although I am unable to test, since I dont have access to a PowerPC64 Mac at this time.

I have provided a couple of scripts:

test_autotools.sh: Builds the latest version of OpenSSL, WGet, and CURL and they are running and working on my iBook G4.

test_simple.sh: Builds some F77, F90, C89, C11, C++03, C++11, and C++14 programs that run on my iBook G4. Well except for the Fortran programs because the OS X Cross build did not stage the gfortran compiler for PPC32.

Please consider merging this into the ppc-test branch. Hopefully it will help others that need to create a toolchain that targets MacOS powerpc with a newer toolchain and newer C++ standards.

HinTak commented 11 months ago

FWIW (no personal involvement with osxcross, just another user), this material belongs to your personal blog, not to osxcross. Too much stuff of very little general interests, flooding and drowning the "main" use documents of osxcross. Sorry to put it bluntly.

jlsantiago0 commented 11 months ago

@HinTak Thank You for the feedback. This particular PR is for the PPC specific branch ppc-test of osxcross. So it wont be in the "main" use documentation. I personally would have found this very useful, if it had existed. To me the PPC branch seems a good place for it.

tpoechtrager commented 10 months ago

Thanks for all the effort you have put into this. This is an awesome contribution!