Ticket #3298 (new enhancement)

Opened 14 months ago

Last modified 7 months ago

[patch] Make gcc2 and gcc4 build correctly on Mac OS X/Darwin

Reported by: VinDuv Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Platform: All
Blocking:

Description

The attached patch allow gcc2 to be built on Mac OS X.

* The config.guess patch makes Mac OS X recognized (as FreeBSD) by the configure script.
* With the Makefile.in patch, the system's makeinfo tool will be used instead of the bundled one (buildtools/gcc/texinfo/makeinfo), which does not work in Mac OS X (segfaults).

Tested on Mac OS X and Linux, should be harmless on systems which don't have makeinfo in /usr/bin.

Attachments

haiku_gcc2_osx.patch Download (1.3 KB) - added by VinDuv 14 months ago.
haiku_gcc2_osx_2.patch Download (94.1 KB) - added by VinDuv 14 months ago.
buildtools_macosx.patch Download (94.9 KB) - added by VinDuv 7 months ago.
Buildtools patch

Change History

Changed 14 months ago by VinDuv

follow-up: ↓ 2   Changed 14 months ago by scottmc

Rather than patching config.guess, these should just be replaced with fresh copies from gnulib.

Changed 14 months ago by VinDuv

in reply to: ↑ 1   Changed 14 months ago by VinDuv

New patch attached. I used both config.guess and config.sub from gnulib (big jump, 1999 => 2008). I also had to edit buildtools/legacy/gcc/gcc/configure (and configure.in) to make it recognize i386-darwin-gcc.

Changed 7 months ago by VinDuv

Buildtools patch

  Changed 7 months ago by VinDuv

  • summary changed from [patch] Make gcc2 builds correctly on Mac OS X/Darwin to [patch] Make gcc2 and gcc4 build correctly on Mac OS X/Darwin

Here is a new patch that fixes building both gcc2 and gcc4 on Snow Leopard. Not yet tested on other platforms though...

Note: See TracTickets for help on using tickets.