summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authortonio <tonio@pkgsrc.org>2008-07-14 13:06:23 +0000
committertonio <tonio@pkgsrc.org>2008-07-14 13:06:23 +0000
commit5dd8d9fd9b2f8740b42664f5caa363b936bc53ee (patch)
tree2cca0fd89b7813c7d577f85a831d7b5b44ede5e1 /devel
parent626e23e91b9431bc469eca194540ffe698bc2427 (diff)
downloadpkgsrc-5dd8d9fd9b2f8740b42664f5caa363b936bc53ee.tar.gz
Fix build under MacOSX Leopard with Xcode 3
Diffstat (limited to 'devel')
-rw-r--r--devel/gmp/distinfo3
-rw-r--r--devel/gmp/patches/patch-ac18
2 files changed, 20 insertions, 1 deletions
diff --git a/devel/gmp/distinfo b/devel/gmp/distinfo
index 75f2703fb20..536cb7dba30 100644
--- a/devel/gmp/distinfo
+++ b/devel/gmp/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2008/04/01 00:57:09 bjs Exp $
+$NetBSD: distinfo,v 1.22 2008/07/14 13:06:23 tonio Exp $
SHA1 (gmp-4.2.2.tar.bz2) = 8c5f9798956f9b0162a25a56477a3566a92abc72
RMD160 (gmp-4.2.2.tar.bz2) = 4021720f78b02244197c0c49522289e7fe81aad9
@@ -8,3 +8,4 @@ RMD160 (mpf_set_str.c.diff) = 455375f049ff8ef809e796441ec7a83ec648287b
Size (mpf_set_str.c.diff) = 1062 bytes
SHA1 (patch-aa) = a53db34c8ecf38d6556a59a0fa7382456c30fab6
SHA1 (patch-ab) = e768eca25c117871041d12a618e38d9d252f25e5
+SHA1 (patch-ac) = aba76fe105ed971e09901c5fc3d756529094b618
diff --git a/devel/gmp/patches/patch-ac b/devel/gmp/patches/patch-ac
new file mode 100644
index 00000000000..df28de9a89a
--- /dev/null
+++ b/devel/gmp/patches/patch-ac
@@ -0,0 +1,18 @@
+$NetBSD: patch-ac,v 1.7 2008/07/14 13:06:23 tonio Exp $
+
+Apple's gcc build >5400 (since Xcode 3.0) doesn't support GNU inline in C99 mode
+
+--- gmp-h.in.orig 2007-09-03 18:05:40.000000000 +0200
++++ gmp-h.in
+@@ -423,8 +423,11 @@ typedef __mpq_struct *mpq_ptr;
+ #ifdef __GNUC_STDC_INLINE__
+ #define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
+ #else
++#if defined(__APPLE_CC__) && __APPLE_CC__ > 5400 && __STDC_VERSION__ >= 199901L
++#else
+ #define __GMP_EXTERN_INLINE extern __inline__
+ #endif
++#endif
+ #define __GMP_INLINE_PROTOTYPES 1
+ #endif
+