autotools.bbclass: Specify a value of sysroot instead of asking the compiler
authorKhem Raj <raj.khem@gmail.com>
Fri, 22 Oct 2010 22:10:08 +0000 (15:10 -0700)
committerKhem Raj <raj.khem@gmail.com>
Sun, 24 Oct 2010 01:56:15 +0000 (18:56 -0700)
commit60075ae81e0bd95aa83adcb49b74ca4694cd80a2
treee89483f094c578e17baf8161a4f68d3e32fd32a3
parent4aedce871cc504dc7f7dd508ba38bb839a1a506d
autotools.bbclass: Specify a value of sysroot instead of asking the compiler

If we just use --with-libtool-sysroot then it asks the compiler at
configure time to supply the sysroot which will not work with external
toolchains because they may have different default sysroot encoded into
them. Therefore we specify the sysroot so the configure can use that
value and not depend upon compiler to supply one.

We do not do it for native recipes as the native compiler should
fall back to /usr prefix and not solely depend on sysroot otherwise
we end up staging everything in native sysroot before we start to build
target recipes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
classes/autotools.bbclass