This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
can't build cross compilers on powerpc-apple-darwin5.5
- From: Alan Lehotsky <apl at alum dot mit dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 30 Jun 2002 15:50:32 -0400
- Subject: can't build cross compilers on powerpc-apple-darwin5.5
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.....
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?
-- Al
--
Quality Software Management
http://home.earthlink.net/~qsmgmt
apl@alum.mit.edu
(978)287-0435 Voice
(978)808-6836 Cell
Software Process Improvement / Management Consulting
Language Design / Compiler Implementation