Opened 16 years ago
Closed 14 years ago
#3298 closed enhancement (fixed)
[patch] Make gcc2 and gcc4 build correctly on Mac OS X/Darwin
Reported by: | VinDuv | Owned by: | zooey |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Build System | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
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 (6)
Change History (16)
by , 16 years ago
Attachment: | haiku_gcc2_osx.patch added |
---|
follow-up: 2 comment:1 by , 16 years ago
by , 16 years ago
Attachment: | haiku_gcc2_osx_2.patch added |
---|
comment:2 by , 16 years ago
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.
comment:3 by , 15 years ago
Summary: | [patch] Make gcc2 builds correctly on Mac OS X/Darwin → [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...
comment:4 by , 15 years ago
patch: | → 0 |
---|
comment:5 by , 15 years ago
patch: | 0 → 1 |
---|
comment:6 by , 14 years ago
patch: | 1 → 0 |
---|
by , 14 years ago
Attachment: | buildtools_gcc2_config.patch added |
---|
buildtools patch — gcc2 config.{sub,guess} update
comment:7 by , 14 years ago
patch: | 0 → 1 |
---|
by , 14 years ago
Attachment: | buildtools_gcc2_misc.patch added |
---|
buildtools patch — gcc2 configuration/build fixes
by , 14 years ago
Attachment: | haiku_macox.patch added |
---|
Haiku configure patch — alternative for missing realpath/readlink -e
comment:8 by , 14 years ago
Here is a new patch made against current Haiku and Mac OS X/Xcode versions.
It was tested on Mac OS X and Linux (and I really don’t expect it to cause any issues on other platforms).
buildtools_gcc2_config.patch
updates gcc2’s config.{sub,guess} to the 2008-12-19 version. I didn’t use the current version as it detects Mac OS X 10.6 as a 64 bits OS (which causes other configuration problems).buildtools_gcc2_misc.patch
adds support for the -darwin targets and fixes some build problems.haiku_macox.patch
adds a Perl based realpath support in the configure script. (Mac OS X does not havereadlink -e
norrealpath
commands)
comment:9 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → in-progress |
comment:10 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | in-progress → closed |
Applied in hrev38454 - thanks for the patches!
Since I have done a couple of small adjustments, please re-test and give me a shout if I have messed anything up.
Rather than patching config.guess, these should just be replaced with fresh copies from gnulib.