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: 29 Aug 2009 01:40:48 -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 #13 from howarth at nitro dot med dot uc dot edu 2009-08-29 01:40 -------
Opps, the corrected proposed patch is...
Index: config.guess
===================================================================
--- config.guess (revision 151196)
+++ config.guess (working copy)
@@ -1258,6 +1258,15 @@
exit ;;
*:Darwin:*:*)
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ main()
+ {
+ }
+EOF
+ if test "`$CC_FOR_BUILD -o $dummy $dummy.c; file $dummy | grep -c
x86_64`" = 1 ; then
+ UNAME_PROCESSOR=x86_64
+ fi
case $UNAME_PROCESSOR in
unknown) UNAME_PROCESSOR=powerpc ;;
esac
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41180