with-sysroot / with-build-sysroot

David Daney ddaney@avtrex.com
Thu Oct 11 23:19:00 GMT 2007


NightStrike wrote:
> Could someone explain to me in more detail than what is in the manual
> what the differences are between the two options, with-sysroot and
> with-build-sysroot?

My understanding (not having ever used --with-build-sysroot) is:

--with-sysroot specifies the sysroot to be used when the compiler is 
being run.

If the sysroot at compiler build time is in a different location than 
that specified by --with-sysroot, you should specify the build time 
location  with --with-build-sysroot.

If your host machine is the build machine, then you probably only want 
to specify --with-sysroot.  If you are building for a different host 
(one that has a different sysroot than the build machine) then you may 
need --with-build-sysroot.

David Daney



More information about the Gcc-help mailing list