glibc-initial.inc: use relative path to run configure

Avoid potential build path in output files.

[YOCTO #8894]

(From OE-Core rev: 54931e7d7e4c4bd547398542bb20b70506242561)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Robert Yang 2015-10-07 20:00:24 -07:00 committed by Richard Purdie
parent 0fe6e2dc7b
commit b2f1de35b4
1 changed files with 2 additions and 1 deletions

View 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} \