pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gmp Fix build under MacOSX Leopard with Xcode 3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ec3923db705d
branches:  trunk
changeset: 544419:ec3923db705d
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Mon Jul 14 13:06:23 2008 +0000

description:
Fix build under MacOSX Leopard with Xcode 3

diffstat:

 devel/gmp/distinfo         |   3 ++-
 devel/gmp/patches/patch-ac |  18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r b2365e5ae53d -r ec3923db705d devel/gmp/distinfo
--- a/devel/gmp/distinfo        Mon Jul 14 13:02:00 2008 +0000
+++ b/devel/gmp/distinfo        Mon Jul 14 13:06:23 2008 +0000
@@ -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 @@
 Size (mpf_set_str.c.diff) = 1062 bytes
 SHA1 (patch-aa) = a53db34c8ecf38d6556a59a0fa7382456c30fab6
 SHA1 (patch-ab) = e768eca25c117871041d12a618e38d9d252f25e5
+SHA1 (patch-ac) = aba76fe105ed971e09901c5fc3d756529094b618
diff -r b2365e5ae53d -r ec3923db705d devel/gmp/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gmp/patches/patch-ac        Mon Jul 14 13:06:23 2008 +0000
@@ -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
+ 



Home | Main Index | Thread Index | Old Index