This is the mail archive of the gcc@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: can't build cross compilers on powerpc-apple-darwin5.5


Alan Lehotsky wrote:
> 
> I'm trying to build cross compilers hosted on Mac OS X.  When
> configure puts together the
> gcc/Makefile, it decides that it needs to look in darwin.c for
> garbage collection.
> 
> This is because config.gcc contains lines
> 
>         config_gtfiles="${config_gtfiles} \$(srcdir)/config/darwin.c"
>         c_target_objs="darwin-c.o"
>         cxx_target_objs="darwin-c.o"
>         # Darwin linker does collect2 functionality
>         use_collect2=no
>         extra_headers=altivec.h
> 
> which (if I understand what's going on here) get triggered when
> config.gcc is called for the
> HOST configuration.  When configure calls config.gcc for the TARGET,
> the damage is already done in
> that the config_gtfiles shell variable is already contaminated.
> 
> Now, it seems to me that this config_gtfiles needs to be somewhere
> that ONLY affects targets, not where it affects the host environment
> and accidently affects the targets.....

Yup.  As a workaround, I've been commenting out the config_gtfiles
lines when making cross compilers.

> I can't see how to fix this as long as the stuff is in config.gcc.
> In the old days, this stuff would be in
> config/rs6000/x-darwin.  Is that where I should move it?

No, that's only for host stuff, and this is a target need.
Probably config_gtfiles needs to split into host and target
lists.  I've been meaning to get around to fixing this,
let me see if I can do it today.

Stan


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