summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-10-05 23:42:24 -0700
committerRobert Yang <liezhi.yang@windriver.com>2015-10-08 05:58:40 -0700
commit5c927d04a3d915e5949f36f5ec9da9f81d8459bd (patch)
treeae4830c2722afa75365387066c944c786369ee7c
parenta7b8d1c512cc8b2cb98864f2fc124cb3336d809d (diff)
downloadopenembedded-core-contrib-5c927d04a3d915e5949f36f5ec9da9f81d8459bd.tar.gz
openembedded-core-contrib-5c927d04a3d915e5949f36f5ec9da9f81d8459bd.tar.bz2
openembedded-core-contrib-5c927d04a3d915e5949f36f5ec9da9f81d8459bd.zip
autotools.bbclass: use relative path to run configure script
The absolute path (/path/to/configure) caused VPATH in Makefile to be an absolute path, and then it will be in elf files, use relative path to run configure can fix the problem. This will reduce 3127 buildpaths QA issues in a world buld (8957 -> 5830). [YOCTO #8437] Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rw-r--r--meta/classes/autotools.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 078f58fad3..c40e5f437c 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -79,7 +79,9 @@ CONFIGUREOPT_DEPTRACK ?= "--disable-dependency-tracking"
oe_runconf () {
- cfgscript="${S}/configure"
+ # Use relative path for S to avoid buildpaths in files
+ relative_s=`python -c "import os; print os.path.relpath('${S}', '.')"`
+ cfgscript="$relative_s/configure"
if [ -x "$cfgscript" ] ; then
bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
set +e