diff options
Diffstat (limited to 'meta/recipes-support/gmp/gmp-4.2.1/disable-stdc.patch')
| -rw-r--r-- | meta/recipes-support/gmp/gmp-4.2.1/disable-stdc.patch | 39 |
1 files changed, 0 insertions, 39 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 deleted file mode 100644 index 5decb1cec5..0000000000 --- a/meta/recipes-support/gmp/gmp-4.2.1/disable-stdc.patch +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | This patch was removed in f181c6ce8b3 when gmp 4.2.1 was mistakenly | ||
| 2 | dropped. | ||
| 3 | |||
| 4 | Upstream is not interested in patches for ancient versions. | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate | ||
| 7 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
| 8 | |||
| 9 | # "extern inline" in traditional gcc means that the function should be | ||
| 10 | # inlined wherever it's seen, while in C99, "extern inline" means that i | ||
| 11 | # the function should only be inlined where the inline definition is | ||
| 12 | # seen while in other places it's not inlined: | ||
| 13 | # http://gcc.gnu.org/ml/gcc/2006-11/msg00006.html | ||
| 14 | # | ||
| 15 | # gmp checks "--std=gnu99" to use C99 convention however it internally | ||
| 16 | # defines some "extern inline" functions in gmp.h, which is included | ||
| 17 | # by mainly .c files and finally lead a flood of redefinition function | ||
| 18 | # errors when linking objects together. | ||
| 19 | # | ||
| 20 | # So disable C99/ANSI detection to stick to tranditional gcc behavior | ||
| 21 | # | ||
| 22 | # by Kevin Tian <kevin.tian@intel.com>, 2010-08-13 | ||
| 23 | # | ||
| 24 | # (this patch is licensed under GPLv2+) | ||
| 25 | |||
| 26 | diff --git a/configure.in b/configure.in | ||
| 27 | index 450cc92..aab0b59 100644 | ||
| 28 | --- a/configure.in | ||
| 29 | +++ b/configure.in | ||
| 30 | @@ -1869,9 +1869,7 @@ AC_SUBST(DEFN_LONG_LONG_LIMB) | ||
| 31 | |||
| 32 | # The C compiler and preprocessor, put into ANSI mode if possible. | ||
| 33 | AC_PROG_CC | ||
| 34 | -AC_PROG_CC_STDC | ||
| 35 | AC_PROG_CPP | ||
| 36 | -GMP_H_ANSI | ||
| 37 | |||
| 38 | |||
| 39 | # The C compiler on the build system, and associated tests. | ||
