Re: Cross-compiling gcc? (sysroot confusion)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> What you can do is to use the --with-build-sysroot.
> 
> Is the whole consept that you are going to copy /sysroot to another machine? Is the crossed compiler (the one that was compiled using the cross compiler) supposed to use /sysroot on the target machine as sysroot? (Because that is a bit of a hack!)
> 
> 
> If not you can do something like this: --with-gmp=/sysroot (you don't need to add --with-mpfr and --with-mpc as long as you used --with-gmp) --host=i686-pc-linux-gnu --with-build-sysroot=/sysroot --with-sysroot=/ 

My plan is that that final gcc will be run as /usr/bin/gcc after all
of /sysroot has been moved to a separate machine, yes.

So it sounds like --with-build-sysroot is what I need. Thanks.

Are --with-sysroot and --with-gmp really necessary at that point
though? Isn't the sysroot / by default, and the gmp search path
affected by --with-build-sysroot?

Rgds
-- 
Pierre Ossman           Software Development
Cendio AB		https://cendio.com
Teknikringen 8		https://twitter.com/ThinLinc
583 30 Linköping	https://facebook.com/ThinLinc
Phone: +46-13-214600	https://plus.google.com/+CendioThinLinc

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux