[oe-commits] Ming Liu : gmp: use PACKAGECONFIG to address readline dependency

git at git.openembedded.org git at git.openembedded.org
Fri Jul 18 13:36:32 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: b98da859423a541e419bbf38edacf2320ce00c8d
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b98da859423a541e419bbf38edacf2320ce00c8d

Author: Ming Liu <ming.liu at windriver.com>
Date:   Thu Jul 17 15:58:18 2014 +0800

gmp: use PACKAGECONFIG to address readline dependency

To avoid automatically detecting readline dependency, which will lead to
a implicit build result.

Signed-off-by: Ming Liu <ming.liu at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-support/gmp/gmp.inc      | 3 +++
 meta/recipes-support/gmp/gmp_4.2.1.bb | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/meta/recipes-support/gmp/gmp.inc b/meta/recipes-support/gmp/gmp.inc
index d025e07..6aedc85 100644
--- a/meta/recipes-support/gmp/gmp.inc
+++ b/meta/recipes-support/gmp/gmp.inc
@@ -18,6 +18,9 @@ acpaths = ""
 
 BBCLASSEXTEND = "native nativesdk"
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[readline] = "--with-readline=yes,--with-readline=no,readline"
+
 EXTRA_OECONF += " --enable-cxx=detect"
 
 PACKAGES =+ "libgmpxx"
diff --git a/meta/recipes-support/gmp/gmp_4.2.1.bb b/meta/recipes-support/gmp/gmp_4.2.1.bb
index 5c93925..69ad0ca 100644
--- a/meta/recipes-support/gmp/gmp_4.2.1.bb
+++ b/meta/recipes-support/gmp/gmp_4.2.1.bb
@@ -17,4 +17,7 @@ SRC_URI = "${GNU_MIRROR}/gmp/${BP}.tar.bz2 \
 SRC_URI[md5sum] = "091c56e0e1cca6b09b17b69d47ef18e3"
 SRC_URI[sha256sum] = "d07ffcb37eecec35c5ec72516d10b35fdf6e6fef1fcf1dcd37e30b8cbf8bf941"
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[readline] = "--with-readline=yes,--with-readline=no,readline"
+
 inherit autotools texinfo



More information about the Openembedded-commits mailing list