autotools.bbclass: Specify a value of sysroot instead of asking the compiler
PATCH 1/1 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.
Signed-off-by Khem Raj <[email protected]>
--- classes/autotools.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
classes/autotools.bbclass +1 -1
@@ -76,7 +76,7 @@ CONFIGUREOPTS = " --build=${BUILD_SYS} \ --oldincludedir=${oldincludedir} \ --infodir=${infodir} \ --mandir=${mandir} \ - ${@["","--with-libtool-sysroot"][bb.data.getVar('LIBTOOL_HAS_SYSROOT', d, 1) == "yes"]} \ + ${@["","--with-libtool-sysroot=${STAGING_DIR}/${MULTIMACH_HOST_SYS}"][bb.data.getVar('LIBTOOL_HAS_SYSROOT', d, 1) == "yes"]} \ " oe_runconf () {
Signature · 1 line
1.7.1