aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-10-07 20:00:24 -0700
committerRobert Yang <liezhi.yang@windriver.com>2016-01-11 18:02:06 -0800
commit097b013f99f3b90dbb0f7038163ec4b4b316b510 (patch)
tree1e0fcec025cc87f0e2f7256e04ac597661b38b71
parent541315d6c56df6448f64c262f99d43d5c1e9400b (diff)
downloadopenembedded-core-contrib-097b013f99f3b90dbb0f7038163ec4b4b316b510.tar.gz
openembedded-core-contrib-097b013f99f3b90dbb0f7038163ec4b4b316b510.tar.bz2
openembedded-core-contrib-097b013f99f3b90dbb0f7038163ec4b4b316b510.zip
glibc-initial.inc: use relative path to run configure
Avoid potential build path in output files. [YOCTO #8894] Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rw-r--r--meta/recipes-core/glibc/glibc-initial.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/glibc/glibc-initial.inc b/meta/recipes-core/glibc/glibc-initial.inc
index 8e81f097aa0..7214f714043 100644
--- a/meta/recipes-core/glibc/glibc-initial.inc
+++ b/meta/recipes-core/glibc/glibc-initial.inc
@@ -11,7 +11,8 @@ TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TCBOOTSTRAP}"
do_configure () {
(cd ${S} && gnu-configize) || die "failure in running gnu-configize"
find ${S} -name "configure" | xargs touch
- ${S}/configure --host=${TARGET_SYS} --build=${BUILD_SYS} \
+ cfgscript=`python -c "import os; print os.path.relpath('${S}', '.')"`/configure
+ $cfgscript --host=${TARGET_SYS} --build=${BUILD_SYS} \
--prefix=/usr \
--without-cvs --disable-sanity-checks \
--with-headers=${STAGING_DIR_TARGET}${includedir} \