summaryrefslogtreecommitdiffstats
path: root/recipes-support/gmp/gmp_4.2.1.bb
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2017-08-25 17:50:16 -0700
committerRoss Burton <ross.burton@intel.com>2017-08-29 17:18:50 +0100
commitd8668018d5d795be2297f878fd871a27edf532bf (patch)
tree4159d618bb4414f4264d0b70b70a86e81bdd8149 /recipes-support/gmp/gmp_4.2.1.bb
parent4fb2d4122fb2b62b60095fe676ea47ce7536af9a (diff)
downloadmeta-gplv2-d8668018d5d795be2297f878fd871a27edf532bf.tar.gz
gmp_4.2.1: prevent calls to mpn_add_nc() if HAVE_NATIVE_mpn_sub_nc is false
When building for aarch64 (ie relying only on generic C code rather than asm) libgmp.so contains undefined references to __gmpn_add_nc and __gmpn_sub_nc which causes attempts to link with -lgmp to fail: | .../usr/lib/libgmp.so: undefined reference to `__gmpn_sub_nc' | .../usr/lib/libgmp.so: undefined reference to `__gmpn_add_nc' Solution based on a historical patch posted to the gmp mailing list: https://gmplib.org/list-archives/gmp-discuss/2006-May/002344.html Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'recipes-support/gmp/gmp_4.2.1.bb')
-rw-r--r--recipes-support/gmp/gmp_4.2.1.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-support/gmp/gmp_4.2.1.bb b/recipes-support/gmp/gmp_4.2.1.bb
index 5e8ee29..029e728 100644
--- a/recipes-support/gmp/gmp_4.2.1.bb
+++ b/recipes-support/gmp/gmp_4.2.1.bb
@@ -11,6 +11,7 @@ SRC_URI = "https://gmplib.org/download/${BPN}/archive/${BP}.tar.bz2 \
11 file://Use-__gnu_inline__-attribute.patch \ 11 file://Use-__gnu_inline__-attribute.patch \
12 file://gmp_fix_for_automake-1.12.patch \ 12 file://gmp_fix_for_automake-1.12.patch \
13 file://avoid-h-asm-constraint-for-MIPS.patch \ 13 file://avoid-h-asm-constraint-for-MIPS.patch \
14 file://prevent-calls-to-mpn_add_nc-if-HAVE_NATIVE_mpn_sub_n.patch \
14" 15"
15 16
16SRC_URI[md5sum] = "091c56e0e1cca6b09b17b69d47ef18e3" 17SRC_URI[md5sum] = "091c56e0e1cca6b09b17b69d47ef18e3"