]> code.ossystems Code Review - openembedded-core.git/commitdiff
libtool: fix contaminated path to lt_truncate_bin
authorAlexandru Moise <alexandru.moise@windriver.com>
Tue, 5 Apr 2016 07:33:33 +0000 (10:33 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Apr 2016 10:25:57 +0000 (11:25 +0100)
lt_truncate_bin path is contaminated by the path from the sysroot
directory for the build host.

Steps to reproduce this issue:
$ bitbake -c cleanall libtool
$ bitbake coreutils-native
$ bitbake libtool

$ grep -in "lt_truncate_bin=" tmp/work/*/libtool/*/image/usr/bin/libtool

Signed-off-by: Alexandru Moise <alexandru.moise@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/libtool/libtool_2.4.6.bb

index 45f1b2f3a977a3bbc85bc6e8c7f0585c68f2a9f2..3851ec7f8389ef24f19276a0263f6b9ed3c9a6d2 100644 (file)
@@ -10,6 +10,7 @@ SYSROOT_PREPROCESS_FUNCS += "libtool_sysroot_preprocess"
 do_install_append () {
         sed -e 's@--sysroot=${STAGING_DIR_HOST}@@g' \
             -e 's@${STAGING_DIR_HOST}@@g' \
+            -e 's@${STAGING_DIR_NATIVE}@@g' \
             -e 's@^\(sys_lib_search_path_spec="\).*@\1${libdir} ${base_libdir}"@' \
             -e 's@^\(compiler_lib_search_dirs="\).*@\1${libdir} ${base_libdir}"@' \
             -e 's@^\(compiler_lib_search_path="\).*@\1${libdir} ${base_libdir}"@' \