Cross-compiling gcc? (sysroot confusion)

Pierre Ossman ossman@cendio.se
Wed Nov 5 14:35:00 GMT 2014


> 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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20141105/391261bb/attachment.sig>


More information about the Gcc-help mailing list