diff options
| author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2015-09-23 10:34:56 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-24 17:54:24 +0100 |
| commit | 6d1447ba2d8b1c76fd1f0d26aee250fb82cbeddd (patch) | |
| tree | 28ec958accc097066d80676379345f5f01dbcb0c /meta/recipes-support/gmp/gmp-4.2.1/disable-stdc.patch | |
| parent | 42dc9024d8e659c64d21dbf8032a6e527b184343 (diff) | |
| download | poky-6d1447ba2d8b1c76fd1f0d26aee250fb82cbeddd.tar.gz | |
gmp: Use __gnu_inline__ attribute in 4.2.1
gcc 5 defaults to C11 rules about "extern inline": this breaks
any code that includes gmp.h header from gmp 4.2.1 with 'multiple
definition' errors.
disable-stdc patch is no longer required because of this.
(From OE-Core rev: e03d95d70f8bfe57c258d270ac6b3331650dbc10)
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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. | ||
