Diffstat (limited to 'meta/recipes-support/gmp/gmp-4.2.1/disable-stdc.patch')
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-support/gmp/gmp-4.2.1/disable-stdc.patch b/meta/recipes-support/gmp/gmp-4.2.1/disable-stdc.patch
new file mode 100644
@@ -0,0 +1,31 @@
+# "extern inline" in traditional gcc means that the function should be
+# inlined wherever it's seen, while in C99, "extern inline" means that i
+# the function should only be inlined where the inline definition is
+# seen while in other places it's not inlined:
+# gmp checks "--std=gnu99" to use C99 convention however it internally
+# defines some "extern inline" functions in gmp.h, which is included
+# by mainly .c files and finally lead a flood of redefinition function
+# errors when linking objects together.
+# So disable C99/ANSI detection to stick to tranditional gcc behavior
+# by Kevin Tian <firstname.lastname@example.org>, 2010-08-13
+# (this patch is licensed under GPLv2+)
+diff --git a/configure.in b/configure.in
+index 450cc92..aab0b59 100644
+@@ -1869,9 +1869,7 @@ AC_SUBST(DEFN_LONG_LONG_LIMB)
+ # The C compiler and preprocessor, put into ANSI mode if possible.
+ # The C compiler on the build system, and associated tests.