Remove all host build references from the attr-ptest package.

Signed-off-by: Juro Bystricky <[email protected]>
---
 meta/recipes-support/attr/attr.inc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-support/attr/attr.inc 
b/meta/recipes-support/attr/attr.inc
index e8b5d05..24ef5ad 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -32,6 +32,12 @@ do_install_ptest() {
          do cp ${S}/include/$i ${D}${PTEST_PATH}/include/; \
        done
        sed -e 's|; @echo|; echo|' -i ${D}${PTEST_PATH}/test/Makefile
+    
+       # Remove any build host references
+       sed -e "s:--sysroot=${STAGING_DIR_TARGET}::g" \
+           -e 's:${HOSTTOOLS_DIR}/::g' \
+           -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
+           -i ${D}${PTEST_PATH}/include/builddefs
 }
 
 RDEPENDS_${PN}-ptest = "attr coreutils perl-module-filehandle 
perl-module-getopt-std perl-module-posix"
-- 
2.7.4

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to