gmp 4.1.4: added asm fix for sh4 provided by Jamie Lenehan - close #469
authorMarcin Juszkiewicz <hrw@openembedded.org>
Fri, 18 Nov 2005 08:05:01 +0000 (08:05 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 18 Nov 2005 08:05:01 +0000 (08:05 +0000)
packages/gmp/gmp-4.1.4/sh4-asmfix.patch [new file with mode: 0644]
packages/gmp/gmp_4.1.4.bb

diff --git a/packages/gmp/gmp-4.1.4/sh4-asmfix.patch b/packages/gmp/gmp-4.1.4/sh4-asmfix.patch
new file mode 100644 (file)
index 0000000..1a01f61
--- /dev/null
@@ -0,0 +1,26 @@
+--- gmp-4.1.4/mpn/sh/add_n.s   2005/11/17 08:44:00     1.1
++++ gmp-4.1.4/mpn/sh/add_n.s   2005/11/17 08:18:57
+@@ -29,8 +29,8 @@
+       .text
+       .align 2
+-      .global ___gmpn_add_n
+-___gmpn_add_n:
++      .global __gmpn_add_n
++__gmpn_add_n:
+       mov     #0,r3           ! clear cy save reg
+ Loop: mov.l   @r5+,r1
+--- gmp-4.1.4/mpn/sh/sub_n.s   2005/11/17 08:44:04     1.1
++++ gmp-4.1.4/mpn/sh/sub_n.s   2005/11/17 08:18:59
+@@ -29,8 +29,8 @@
+       .text
+       .align 2
+-      .global ___gmpn_sub_n
+-___gmpn_sub_n:
++      .global __gmpn_sub_n
++__gmpn_sub_n:
+       mov     #0,r3           ! clear cy save reg
+ Loop: mov.l   @r5+,r1
index c9348ea..d80e728 100644 (file)
@@ -3,15 +3,17 @@ DESCRIPTION = "GNU multiprecision arithmetic library"
 HOMEPAGE = "http://www.swox.com/gmp/"
 LICENSE = "GPL LGPL"
 
+PR = "r1"
+
 SRC_URI = "ftp://ftp.gnu.org/gnu/gmp/gmp-${PV}.tar.bz2 \
           file://configure.patch;patch=1 \
-          file://amd64.patch;patch=1"
+          file://amd64.patch;patch=1 \
+          file://sh4-asmfix.patch;patch=1"
 
 inherit autotools 
 
 acpaths = ""
 
 do_stage () {
-       oe_libinstall -so libgmp ${STAGING_LIBDIR}
-       install -m 0644 ${S}/gmp.h ${STAGING_INCDIR}/gmp.h
+       autotools_stage_all
 }