diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-10-05 23:42:24 -0700 |
---|---|---|
committer | Robert Yang <liezhi.yang@windriver.com> | 2015-10-08 05:58:40 -0700 |
commit | 5c927d04a3d915e5949f36f5ec9da9f81d8459bd (patch) | |
tree | ae4830c2722afa75365387066c944c786369ee7c /meta | |
parent | a7b8d1c512cc8b2cb98864f2fc124cb3336d809d (diff) | |
download | openembedded-core-contrib-5c927d04a3d915e5949f36f5ec9da9f81d8459bd.tar.gz |
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>
Diffstat (limited to 'meta')
-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 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 |