autotools.bbclass: Move --with-sysroot to CONFIGUREOPTS
authorKhem Raj <raj.khem@gmail.com>
Tue, 19 Oct 2010 19:07:25 +0000 (12:07 -0700)
committerKhem Raj <raj.khem@gmail.com>
Wed, 20 Oct 2010 04:08:40 +0000 (21:08 -0700)
* This is added to CONFIGUREOPTS so it can be filtered out
  when needed. Recipes like gcc need this to be filtered

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

index ce4f66a..a634201 100644 (file)
@@ -75,12 +75,13 @@ CONFIGUREOPTS = " --build=${BUILD_SYS} \
                  --includedir=${includedir} \
                  --oldincludedir=${oldincludedir} \
                  --infodir=${infodir} \
-                 --mandir=${mandir}"
+                 --mandir=${mandir} \
+                 ${@["","--with-sysroot"][bb.data.getVar('LIBTOOL_HAS_SYSROOT', d, 1) == "yes"]} \
+               "
 
 oe_runconf () {
        if [ -x ${S}/configure ] ; then
                ${S}/configure \
-               ${@["","--with-sysroot"][bb.data.getVar('LIBTOOL_HAS_SYSROOT', d, 1) == "yes"]} \
                ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@"
        else
                oefatal "no configure script found"