From 54931e7d7e4c4bd547398542bb20b70506242561 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Wed, 7 Oct 2015 20:00:24 -0700 Subject: glibc-initial.inc: use relative path to run configure Avoid potential build path in output files. [YOCTO #8894] Signed-off-by: Robert Yang --- meta/recipes-core/glibc/glibc-initial.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/glibc/glibc-initial.inc b/meta/recipes-core/glibc/glibc-initial.inc index 8e81f097aa..7214f71404 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} \ -- cgit v1.2.3