]> code.ossystems Code Review - openembedded-core.git/commitdiff
glibc-initial.inc: use relative path to run configure
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 8 Oct 2015 03:00:24 +0000 (20:00 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Jan 2016 10:34:24 +0000 (10:34 +0000)
Avoid potential build path in output files.

[YOCTO #8894]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/recipes-core/glibc/glibc-initial.inc

index 8e81f097aa0d34dbc71dda2827af7ed4e1b1da94..7214f714043084df4791b8adad876f748297a88d 100644 (file)
@@ -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} \