[PATCH] Fix Mac OS X 10.7 build platform
|Reported by:||xyzzy||Owned by:||bonefish|
|Has a Patch:||yes||Platform:||All|
Mac OS X 10.7 is currently broken as a build platform. The attached patch fixes all issues I have encountered with it and allows a GCC4 image to be built (I have not yet tested GCC2). The changes are as follows:
- Use gcc and g++ rather than cc and c++, as the latter now point to clang with recent Xcode versions and compilation of the host tools fail for various reasons with it.
- Conditionally disable an alias that is not supported on OS X.
- Replace the case-sensitive filesystem check with a more basic one, as diskutil no longer supports the behaviour of getting info for the volume that any path is on.
Additionally, the prerequisite installation guide on haiku-os.org needs to be changed. The following command should install all the prerequisites from MacPorts:
sudo port install cdrtools gawk gnuregex wget yasm lesskey mpfr gmp libmpc libiconv