This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/41180] can not build gcc 4.4.1 on Snow Leopard Mac OS X 10.6
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Sep 2009 04:23:27 -0000
- Subject: [Bug bootstrap/41180] can not build gcc 4.4.1 on Snow Leopard Mac OS X 10.6
- References: <bug-41180-13994@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #20 from howarth at nitro dot med dot uc dot edu 2009-09-01 04:23 -------
This appears to do what we want on Snow Leopard in combination with the
config.guess patch...
Index: configure.ac
===================================================================
--- configure.ac (revision 151258)
+++ configure.ac (working copy)
@@ -1119,6 +1119,14 @@
rs6000-*-aix*)
host_makefile_frag="config/mh-ppc-aix"
;;
+ x86_64-*-darwin*)
+ case "${target}" in
+ # avoid default x86_64 code generation
+ i[3456789]86-*-darwin*)
+ CC="${CC-gcc} -m32"
+ ;;
+ esac
+ ;;
*-*-lynxos*)
# /bin/cc is less than useful for our purposes. Always use GCC
tentative_cc="/bin/gcc"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41180