From 97d56a5b8e4f15eb32095f242eb2fd62fc5d85f2 Mon Sep 17 00:00:00 2001 From: Junling Zheng Date: Fri, 17 Apr 2015 08:50:08 +0000 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-support/gmp/gmp.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/recipes-support/gmp') 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" -- cgit 1.2.3-korg