Skip to contentSkip to conversation

autotools.bbclass: Specify a value of sysroot instead of asking the compiler

PATCH New Khem Raj 1 participant 1 message Oct 22, 2010

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

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.

---
 classes/autotools.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
classes/autotools.bbclass +1 -1
index 97bc47c..21e0c9a 100644
@@ -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