autotools.bbclass: Use STAGING_DIR_HOST for libtool sysroot
authorKhem Raj <raj.khem@gmail.com>
Sun, 24 Oct 2010 18:08:56 +0000 (11:08 -0700)
committerKhem Raj <raj.khem@gmail.com>
Sun, 24 Oct 2010 18:10:42 +0000 (11:10 -0700)
${STAGING_DIR}/${MULTIMACH_HOST_SYS} will point to machine dir
for machine specific recipes like shadow, where it should point
to target sysroot, which is the correct location of sysroot.

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

index 3d8bcb5..2c27d0f 100644 (file)
@@ -62,7 +62,7 @@ def append_libtool_sysroot(d):
                if bb.data.getVar('BUILD_SYS', d, 1) == bb.data.getVar('HOST_SYS', d, 1):
                        return '--with-libtool-sysroot'
                else:
-                       return '--with-libtool-sysroot=${STAGING_DIR}/${MULTIMACH_HOST_SYS}'
+                       return '--with-libtool-sysroot=${STAGING_DIR_HOST}'
        return ''
 
 # EXTRA_OECONF_append = "${@autotools_set_crosscompiling(d)}"