Setting up a cross-compile
Dave Williss
dwilliss@microimages.com
Fri Jun 1 15:00:00 GMT 2007
I'm sure there must be documentation somewhere on how to do this, but I
can't find it.
I want to setup a Linux or Mac OS machine to compile and link programs
for a Sun SPARC target.
I know that gcc can be built to cross-compile for another platform, but
apart from specifying the target architecture, I don't know what all I
need to do.
One thing that I'm sure of is that when this gcc is called, I need it to
ignore /usr/include and /usr/lib and pull things from some other
directory where I will have to have copied the SPARC versions. Is there
a configuration option to tell it where those will be, or do I have to
somehow override them at runtime?
More information about the Gcc-help
mailing list