diff -r -u old/gmp-5.1.3/gmp-h.in new/gmp-5.1.3/gmp-h.in
--- old/gmp-5.1.3/gmp-h.in	2014-04-02 17:37:19.000000000 -0600
+++ new/gmp-5.1.3/gmp-h.in	2014-04-02 17:39:16.000000000 -0600
@@ -361,9 +361,9 @@
 #ifdef __GNUC__
 #if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2) \
   || (defined __GNUC_GNU_INLINE__ && defined __cplusplus)
-#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
+#define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__weak__))
 #else
-#define __GMP_EXTERN_INLINE      extern __inline__
+#define __GMP_EXTERN_INLINE      extern __inline__ __attribute__ ((__weak__))
 #endif
 #define __GMP_INLINE_PROTOTYPES  1
 #endif
