]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lttng-tools: Fix ptest installed la files
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Feb 2016 14:49:50 +0000 (14:49 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Feb 2016 23:35:25 +0000 (23:35 +0000)
The ptest .la files are just getting copied into new directories, we need
to relocate them and update the paths within.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/lttng/lttng-tools_git.bb

index e68e7f3e8ad44450633b4e50e9cfd419280426d2..26312033ce83eb091d377c18a84e1b5373802bc4 100644 (file)
@@ -69,6 +69,11 @@ do_install_ptest () {
                  -i $i
        done
 
+       # Update libdir references in copied .la files
+       for i in `find ${D}${PTEST_PATH} -type f -name *.la`; do
+               sed -i -e 's#${S}/tests/#${STAGING_DIR}${PTEST_PATH}#g' $i
+       done
+
        sed -e "s:src/bin:bin:g" -e "s:lt-::g" \
        -i ${D}${PTEST_PATH}/tests/utils/utils.sh
        sed -e "s:ini_config:\.libs\/ini_config:" \