This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]