This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR41180 pt2: fix config.guess on darwin10
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- Cc: gcc-patches at gcc dot gnu dot org, mrs at apple dot com
- Date: Tue, 1 Sep 2009 07:40:37 +0200
- Subject: Re: [PATCH] PR41180 pt2: fix config.guess on darwin10
- References: <20090831225542.GA16619@bromo.med.uc.edu>
Hello Jack,
* Jack Howarth wrote on Tue, Sep 01, 2009 at 12:55:42AM CEST:
> --- config.guess (revision 151230)
> +++ config.guess (working copy)
> @@ -1246,6 +1246,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
Can't you grep some preprocessor symbol instead of introducing another
tool into config.guess with 'file'? There are a few similar examples
in the script already.
Thanks,
Ralf