summaryrefslogtreecommitdiff
path: root/meta/recipes-support/gmp
diff options
context:
space:
mode:
authorJunling Zheng <zhengjunling@huawei.com>2015-04-17 08:50:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-19 13:34:06 +0100
commit97d56a5b8e4f15eb32095f242eb2fd62fc5d85f2 (patch)
tree2dd43843f8c729bc1104255ba41d3758dedd8281 /meta/recipes-support/gmp
parent9e29a8bec3e6bcba38cf097181e50f1266b33221 (diff)
downloadopenembedded-core-97d56a5b8e4f15eb32095f242eb2fd62fc5d85f2.tar.gz
openembedded-core-97d56a5b8e4f15eb32095f242eb2fd62fc5d85f2.tar.bz2
openembedded-core-97d56a5b8e4f15eb32095f242eb2fd62fc5d85f2.zip
gmp: remove referencing paths from the build host
Currently ${D}${includedir}/gmp.h references the path of build host incorrectly, remove it. Signed-off-by: Junling Zheng <zhengjunling@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gmp')
-rw-r--r--meta/recipes-support/gmp/gmp.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-support/gmp/gmp.inc b/meta/recipes-support/gmp/gmp.inc
index 558ee06799..65cde21a7d 100644
--- a/meta/recipes-support/gmp/gmp.inc
+++ b/meta/recipes-support/gmp/gmp.inc
@@ -26,4 +26,8 @@ EXTRA_OECONF += " --enable-cxx=detect"
PACKAGES =+ "libgmpxx"
FILES_libgmpxx = "${libdir}/libgmpxx${SOLIBS}"
+do_install_append_class-target() {
+ sed -i "s|--sysroot=${STAGING_DIR_HOST}||g" ${D}${includedir}/gmp.h
+}
+
SSTATE_SCAN_FILES += "gmp.h"