This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Cross-compilers _without_ copying all of include & lib


%% Dara Hazeghi <dhazeghi@yahoo.com> writes:

  dh> the easiest way to do this is problem using --with-sysroot

Yes, I've heard about this; my original request said:

> From reading lots of messages it seems like --sysroot, coming in
> future versions of GCC, will be exactly what I want, but until then
> (which could be a while since swapping compilers takes a little
> testing) what can I do?

But there is no way in hell I will ever be able to use an unpublished
compiler to build the product.  Even after 3.3.3 is released it will
take some time before we can switch to using it.  I need a shorter-term
solution.


So far my best bet seems to be to punt --with-headers and --with-lib,
then set appropriate variables on the "make" command line to get it to
do what I want.

This isn't as easy as I'd hoped (since it turns out one make variable
controls all three things I need to change: where to find the
cross-assembler, etc.; where to find the target system headers; and
where to find the target system libs--I need these to be in different
places).  But, with some trickery it seems doable.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@nortelnetworks.com>   HASMAT--HA Software Mthds & Tools
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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