osxcross/README.gcc
Thomas Pöchtrager d502ab0138 use a nifty preprocessor trick to workaround the __block issue in unistd.h
get rid of the  || exit 1  in build.sh by using  set -e
2014-03-26 20:29:50 +01:00

18 lines
752 B
Plaintext

- OSXCross: OS X cross toolchain for linux -
After finishing ./build.sh you can optionally build gcc as well.
Don't forget to run "source ~/.profile" after adding the PATH exports to your .bashrc or .profile,
or simply start a new shell session.
Then make sure you have got the build dependencies for gcc installed on your system,
see: http://gcc.gnu.org/install/prerequisites.html
On debian like systems you can run 'apt-get build-dep gcc' to install them.
After that edit GCC_VERSION in build_gcc.sh, so it fits your requirements, then finally
run ./build_gcc.sh to start building gcc.
If everything went well, then you'll have "x86_64-apple-darwinXX-gcc, i386-apple-darwinXX-g++"
(or o32-gcc, o64-g++, ... as shortcuts) available as compiler.