Browse Source

gmp: do the multilib_header magic for gmp.h

Add multilib support feature for this recipe

(From OE-Core rev: a2b4552b96c49dbdc9aef4b64820c3ff16dc5bb6)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changqing Li 7 years ago
parent
commit
cc8f888018
2 changed files with 5 additions and 1 deletions
  1. 1 1
      meta/recipes-support/gmp/gmp.inc
  2. 4 0
      meta/recipes-support/gmp/gmp_6.1.2.bb

+ 1 - 1
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"

+ 4 - 0
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" \