aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2018-05-18 16:42:48 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-29 11:25:04 +0100
commita2b4552b96c49dbdc9aef4b64820c3ff16dc5bb6 (patch)
tree6062a3696b214ef5922117a42206ed7873bb9bf0 /meta/recipes-support
parentaf2f802d5b59203a887982af83252565b8078085 (diff)
downloadopenembedded-core-contrib-a2b4552b96c49dbdc9aef4b64820c3ff16dc5bb6.tar.gz
gmp: do the multilib_header magic for gmp.h
Add multilib support feature for this recipe Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/gmp/gmp.inc2
-rw-r--r--meta/recipes-support/gmp/gmp_6.1.2.bb4
2 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-support/gmp/gmp.inc b/meta/recipes-support/gmp/gmp.inc
index abac8cf339c..948b89288e0 100644
--- a/meta/recipes-support/gmp/gmp.inc
+++ b/meta/recipes-support/gmp/gmp.inc
@@ -3,7 +3,7 @@ DESCRIPTION = "GMP is a free library for arbitrary precision arithmetic, operati
HOMEPAGE = "http://gmplib.org/"
SECTION = "devel"
-inherit autotools texinfo
+inherit autotools texinfo multilib_header
PACKAGECONFIG ??= ""
PACKAGECONFIG[readline] = "--with-readline=yes,--with-readline=no,readline"
diff --git a/meta/recipes-support/gmp/gmp_6.1.2.bb b/meta/recipes-support/gmp/gmp_6.1.2.bb
index b008710d0f0..c745dbbfe71 100644
--- a/meta/recipes-support/gmp/gmp_6.1.2.bb
+++ b/meta/recipes-support/gmp/gmp_6.1.2.bb
@@ -25,6 +25,10 @@ EXTRA_OECONF_mipsarchr6_append = " --disable-assembly"
PACKAGES =+ "libgmpxx"
FILES_libgmpxx = "${libdir}/libgmpxx${SOLIBS}"
+do_install_append() {
+ oe_multilib_header gmp.h
+}
+
do_install_prepend_class-target() {
sed -i \
-e "s|--sysroot=${STAGING_DIR_HOST}||g" \