|
From: NightStrike <nig...@gm...> - 2009-10-04 21:43:20
|
On Sun, Oct 4, 2009 at 2:06 PM, Ronald Pijnacker <pij...@ds...> wrote: > To quote NightStrike: > > > When you configure binutils, use the --with-sysroot option. This is > > how binutils (and gcc) should pretty much always be built these days, > > with the current configury system that is present in sourceware's top > > level configure. You point binutils to the location of the sysroot, > > and you get bonus points if the sysroot is equal to or decendent from > > your prefix. > > This isn't true then? I understand from this that it doesn't hurt to specify > --with-sysroot if it is the same as --prefix. Sysroots aren't just for cross compiling anymore. The new configury setups have a lot of functionality to support things like completely relocatable toolchains and other nice features (as you are discovering) that are outside of a cross-compiling dependency. I don't ever build non-crossing toolchains anymore without using sysroots (and to that, I always set sysroot == prefix). For clarity, the sysroot is the root directory at which the tools will search for system headers and libraries. |