]> code.ossystems Code Review - openembedded-core.git/commitdiff
gmp: remove referencing paths from the build host
authorJunling Zheng <zhengjunling@huawei.com>
Fri, 17 Apr 2015 08:50:08 +0000 (08:50 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Apr 2015 12:34:06 +0000 (13:34 +0100)
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>
meta/recipes-support/gmp/gmp.inc

index 558ee06799cf887e0f4b8a7c1d9ac4e63db1d2a8..65cde21a7dd2d90c92a002aa3f60e4c672fe6035 100644 (file)
@@ -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"