diff options
author | Roy Li <rongqing.li@windriver.com> | 2014-08-12 14:33:37 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-15 18:21:51 +0100 |
commit | 25bf76a8668d2572c6f1a396b657e795b031bbb3 (patch) | |
tree | 3476bdf0d087f5a262395730b1f9c7d8a2a66872 /meta/recipes-support/gmp/gmp/append_user_provided_flags.patch | |
parent | c23b321b4446685ee4286cc4422772a950ff6370 (diff) | |
download | poky-25bf76a8668d2572c6f1a396b657e795b031bbb3.tar.gz |
gmp: uprev it to 6.0.0
Uprev gmp from 5.1.1 to 6.0.0, and remove the 4.2.1 version which is GPLv2,
since gmp-6.0.0 is dual-licensing, LGPLv3 or GPLv2;
(From OE-Core rev: f181c6ce8b364fbf761a456d998ab78fbd751f35)
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gmp/gmp/append_user_provided_flags.patch')
-rw-r--r-- | meta/recipes-support/gmp/gmp/append_user_provided_flags.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-support/gmp/gmp/append_user_provided_flags.patch b/meta/recipes-support/gmp/gmp/append_user_provided_flags.patch new file mode 100644 index 0000000000..ae1386c4c1 --- /dev/null +++ b/meta/recipes-support/gmp/gmp/append_user_provided_flags.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | Upstream-Status: Inappropriate | ||
2 | |||
3 | Append the user provided flags to the auto-detected ones. | ||
4 | |||
5 | Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> | ||
6 | |||
7 | Index: gmp-5.1.1/configure.ac | ||
8 | =================================================================== | ||
9 | --- gmp-5.1.1.orig/configure.ac 2014-02-11 15:05:44.925202403 +0200 | ||
10 | +++ gmp-5.1.1/configure.ac 2014-02-11 15:19:03.918511398 +0200 | ||
11 | @@ -1745,8 +1745,12 @@ | ||
12 | EOF | ||
13 | |||
14 | |||
15 | -test_CFLAGS=${CFLAGS+set} | ||
16 | -test_CPPFLAGS=${CPPFLAGS+set} | ||
17 | +test_CFLAGS= | ||
18 | +test_CPPFLAGS= | ||
19 | + | ||
20 | +user_CFLAGS=$CFLAGS | ||
21 | +user_CPPFLAGS=$CPPFLAGS | ||
22 | +user_CXXFLAGS=$CXXFLAGS | ||
23 | |||
24 | for abi in $abilist; do | ||
25 | abi_last="$abi" | ||
26 | @@ -2175,7 +2179,7 @@ | ||
27 | want_cxx=no | ||
28 | AC_PROG_CXX | ||
29 | if test $enable_cxx != no; then | ||
30 | - test_CXXFLAGS=${CXXFLAGS+set} | ||
31 | + test_CXXFLAGS= | ||
32 | |||
33 | echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AS_MESSAGE_LOG_FD() | ||
34 | cxxflags_ac_prog_cxx=$CXXFLAGS | ||
35 | @@ -2202,7 +2206,7 @@ | ||
36 | # Automake includes $CPPFLAGS in a C++ compile, so we do the same here. | ||
37 | # | ||
38 | for cxxflags_choice in $cxxflags_list; do | ||
39 | - eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\" | ||
40 | + eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice $user_CXXFLAGS\" | ||
41 | GMP_PROG_CXX_WORKS($CXX $CPPFLAGS $CXXFLAGS, | ||
42 | [want_cxx=yes | ||
43 | break]) | ||
44 | @@ -2292,6 +2296,8 @@ | ||
45 | # done | ||
46 | fi | ||
47 | |||
48 | +CFLAGS="$CFLAGS $user_CFLAGS" | ||
49 | +CPPFLAGS="$CPPFLAGS $user_CPPFLAGS" | ||
50 | |||
51 | cat >&AS_MESSAGE_LOG_FD() <<EOF | ||
52 | Decided: | ||