This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: darwin cross compiling breakage
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: mrs at apple dot com (Mike Stump)
- Cc: ian at airs dot com (Ian Lance Taylor), geoffk at apple dot com (Geoffrey Keating), mark at codesourcery dot com (Mark Mitchell), stevenb dot gcc at gmail dot com (Steven Bosscher), gcc-patches at gcc dot gnu dot org, iant at google dot com (Ian Lance Taylor), pinskia at physics dot uc dot edu (Andrew Pinski)
- Date: Mon, 12 Jun 2006 15:25:47 -0400 (EDT)
- Subject: Re: darwin cross compiling breakage
>
> On Jun 12, 2006, at 11:58 AM, Andrew Pinski wrote:
> >> So, what would you prefer to do now, I can leave it busted and I'll
> >> just keep my work apple local or I can ask if others have a problem
> >> with something like:
> >>
> >> --- ./configure.ac.~1~ 2006-06-08 12:08:48.000000000 -0700
> >> +++ ./configure.ac 2006-06-10 01:27:56.000000000 -0700
> >> @@ -1733,7 +1733,7 @@ then
> >> hostos=`echo $host | sed 's/.*-darwin/darwin/'`
> >> targetos=`echo $target | sed 's/.*-darwin/darwin/'`
> >> if test $hostos = $targetos -o $targetos = darwin ;
> >> then
> >> - CROSS=
> >> + CROSS="-DDARWIN_CROSS_COMPILE"
> >
> > Why not change all of CROSS_COMPILE to be the correct defintion like
> > NON_SAME_CROSS_COMPILE and just define CROSS_COMPILE instead.
>
> Let me understand your solution a little more. Your solution is the
> same as mine, but, you would rather CROSS_COMPILE be named
> NON_SAME_CROSS_COMPILE and you want DARWIN_CROSS_COMPILE to be named
> CROSS_COMPILE?
>
> Is that what you want?
A little more, the default CROSS for a cross compiler defines CROSS_COMPILE and
NON_SAME_CROSS_COMPILE while Darwin only defines CROSS_COMPILE.
Better a better name for NON_SAME_CROSS_COMPILE would be much helpful.
-- Pinski