diff options
-rw-r--r-- | meta/classes/autotools.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index d546a5c028..44cb422584 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -83,7 +83,9 @@ CONFIGURE_SCRIPT ?= "${AUTOTOOLS_SCRIPT_PATH}/configure" | |||
83 | AUTOTOOLS_AUXDIR ?= "${AUTOTOOLS_SCRIPT_PATH}" | 83 | AUTOTOOLS_AUXDIR ?= "${AUTOTOOLS_SCRIPT_PATH}" |
84 | 84 | ||
85 | oe_runconf () { | 85 | oe_runconf () { |
86 | cfgscript="${CONFIGURE_SCRIPT}" | 86 | # Use relative path to avoid buildpaths in files |
87 | cfgscript_name="`basename ${CONFIGURE_SCRIPT}`" | ||
88 | cfgscript=`python -c "import os; print os.path.relpath(os.path.dirname('${CONFIGURE_SCRIPT}'), '.')"`/$cfgscript_name | ||
87 | if [ -x "$cfgscript" ] ; then | 89 | if [ -x "$cfgscript" ] ; then |
88 | bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" | 90 | bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" |
89 | set +e | 91 | set +e |