summaryrefslogtreecommitdiff
path: root/package/gmp
diff options
context:
space:
mode:
Diffstat (limited to 'package/gmp')
-rw-r--r--package/gmp/Makefile3
-rw-r--r--package/gmp/patches/patch-configure11
-rw-r--r--package/gmp/patches/patch-longlong_h11
3 files changed, 14 insertions, 11 deletions
diff --git a/package/gmp/Makefile b/package/gmp/Makefile
index 674c2323e..ccda78c16 100644
--- a/package/gmp/Makefile
+++ b/package/gmp/Makefile
@@ -13,8 +13,10 @@ PKG_NEEDS:= c++
PKG_LIBNAME:= libgmp
PKG_OPTS:= dev
+include ${ADK_TOPDIR}/mk/host.mk
include ${ADK_TOPDIR}/mk/package.mk
+$(eval $(call HOST_template,LIBGMP,libgmp,${PKG_VERSION}-${PKG_RELEASE}))
$(eval $(call PKG_template,LIBGMP,libgmp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
ifeq ($(ADK_TARGET_CPU_MIPS_MIPS32R6)$(ADK_TARGET_CPU_MIPS_MIPS64R6),y)
@@ -26,4 +28,5 @@ libgmp-install:
${CP} ${WRKINST}/usr/lib/libgmp.so* \
${IDIR_LIBGMP}/usr/lib
+include ${ADK_TOPDIR}/mk/host-bottom.mk
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/gmp/patches/patch-configure b/package/gmp/patches/patch-configure
new file mode 100644
index 000000000..4b2862039
--- /dev/null
+++ b/package/gmp/patches/patch-configure
@@ -0,0 +1,11 @@
+--- gmp-6.3.0.orig/configure 2023-07-29 15:42:22.000000000 +0200
++++ gmp-6.3.0/configure 2025-04-07 14:52:01.231530118 +0200
+@@ -6568,7 +6568,7 @@ if test "$gmp_prog_cc_works" = yes; then
+
+ #if defined (__GNUC__) && ! defined (__cplusplus)
+ typedef unsigned long long t1;typedef t1*t2;
+-void g(){}
++void g(int, const t1*, t1, t1*, const t1*, int){}
+ void h(){}
+ static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
+ {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
diff --git a/package/gmp/patches/patch-longlong_h b/package/gmp/patches/patch-longlong_h
deleted file mode 100644
index dd42a0ebc..000000000
--- a/package/gmp/patches/patch-longlong_h
+++ /dev/null
@@ -1,11 +0,0 @@
---- gmp-5.1.3.orig/longlong.h 2013-09-30 12:18:28.000000000 +0200
-+++ gmp-5.1.3/longlong.h 2014-01-06 16:07:47.886035812 +0100
-@@ -1230,7 +1230,7 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype
- #define UDIV_TIME 100
- #endif /* __mips */
-
--#if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64
-+#if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64 && defined (_LP64)
- #if __GMP_GNUC_PREREQ (4,4)
- #define umul_ppmm(w1, w0, u, v) \
- do { \