summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gmp/gmp-6.1.2
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/gmp/gmp-6.1.2')
-rw-r--r--meta/recipes-support/gmp/gmp-6.1.2/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch61
-rw-r--r--meta/recipes-support/gmp/gmp-6.1.2/0001-confiure.ac-Believe-the-cflags-from-environment.patch52
-rw-r--r--meta/recipes-support/gmp/gmp-6.1.2/amd64.patch18
-rw-r--r--meta/recipes-support/gmp/gmp-6.1.2/use-includedir.patch15
4 files changed, 146 insertions, 0 deletions
diff --git a/meta/recipes-support/gmp/gmp-6.1.2/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch b/meta/recipes-support/gmp/gmp-6.1.2/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch
new file mode 100644
index 0000000000..325ffe491f
--- /dev/null
+++ b/meta/recipes-support/gmp/gmp-6.1.2/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch
@@ -0,0 +1,61 @@
1From d3b9fc523fc11260ced890c35bc5c9e6391c8656 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 14 Dec 2015 14:19:49 +0200
4Subject: [PATCH] Append the user provided flags to the auto-detected ones.
5
6Upstream-Status: Inappropriate
7Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
8Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
9---
10 configure.ac | 14 ++++++++++----
11 1 file changed, 10 insertions(+), 4 deletions(-)
12
13diff --git a/configure.ac b/configure.ac
14index 9cedfeb..87caee5 100644
15--- a/configure.ac
16+++ b/configure.ac
17@@ -1921,8 +1921,12 @@ cclist=$cclist
18 EOF
19
20
21-test_CFLAGS=${CFLAGS+set}
22-test_CPPFLAGS=${CPPFLAGS+set}
23+test_CFLAGS=
24+test_CPPFLAGS=
25+
26+user_CFLAGS=$CFLAGS
27+user_CPPFLAGS=$CPPFLAGS
28+user_CXXFLAGS=$CXXFLAGS
29
30 for abi in $abilist; do
31 abi_last="$abi"
32@@ -2353,7 +2357,7 @@ AC_SUBST(CCAS)
33 # The C++ compiler, if desired.
34 want_cxx=no
35 if test $enable_cxx != no; then
36- test_CXXFLAGS=${CXXFLAGS+set}
37+ test_CXXFLAGS=
38 AC_PROG_CXX
39
40 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AC_FD_CC
41@@ -2381,7 +2385,7 @@ if test $enable_cxx != no; then
42 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
43 #
44 for cxxflags_choice in $cxxflags_list; do
45- eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
46+ eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice $user_CXXFLAGS\"
47 GMP_PROG_CXX_WORKS($CXX $CPPFLAGS $CXXFLAGS,
48 [want_cxx=yes
49 break])
50@@ -2477,6 +2481,8 @@ if test "$enable_assembly" = "no"; then
51 # done
52 fi
53
54+CFLAGS="$CFLAGS $user_CFLAGS"
55+CPPFLAGS="$CPPFLAGS $user_CPPFLAGS"
56
57 cat >&AC_FD_CC <<EOF
58 Decided:
59--
602.6.2
61
diff --git a/meta/recipes-support/gmp/gmp-6.1.2/0001-confiure.ac-Believe-the-cflags-from-environment.patch b/meta/recipes-support/gmp/gmp-6.1.2/0001-confiure.ac-Believe-the-cflags-from-environment.patch
new file mode 100644
index 0000000000..665367658b
--- /dev/null
+++ b/meta/recipes-support/gmp/gmp-6.1.2/0001-confiure.ac-Believe-the-cflags-from-environment.patch
@@ -0,0 +1,52 @@
1From ae1a4c37417a3bbbf8ea1cab198982b0cad47e29 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 12 Aug 2016 17:08:13 +0000
4Subject: [PATCH] confiure.ac: Believe the cflags from environment
5
6In some toolchains e.g. OpenEmbedded -march options
7are passed on compiler cmdline, it does not use
8the expected target triplets to make these decision
9during configure.
10
11Secondly, dont set armv4 for march when no selection
12is made, since it is passed from cmdline
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16Upstream-Status: Inappropriate[OE-Specific]
17
18 configure.ac | 11 -----------
19 1 file changed, 11 deletions(-)
20
21diff --git a/configure.ac b/configure.ac
22index 857ea3b..359e919 100644
23--- a/configure.ac
24+++ b/configure.ac
25@@ -607,15 +607,6 @@ case $host in
26 GMP_INCLUDE_MPN(arm/arm-defs.m4)
27 CALLING_CONVENTIONS_OBJS='arm32call.lo arm32check.lo'
28
29- # This is needed for clang, which is not content with flags like -mfpu=neon
30- # alone.
31- case $host in
32- *-*-*eabi)
33- gcc_cflags_fpmode="-mfloat-abi=softfp" ;;
34- *-*-*eabihf)
35- gcc_cflags_fpmode="-mfloat-abi=hard" ;;
36- esac
37-
38 # FIXME: We make mandatory compiler options optional here. We should
39 # either enforce them, or organise to strip paths as the corresponding
40 # options fail.
41@@ -686,8 +677,6 @@ case $host in
42 ;;
43 *)
44 path="arm"
45- gcc_cflags_arch="-march=armv4"
46- GMP_DEFINE_RAW(["define(<NOTHUMB>,1)"])
47 ;;
48 esac
49 ;;
50--
511.9.1
52
diff --git a/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch b/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch
new file mode 100644
index 0000000000..564d12d42b
--- /dev/null
+++ b/meta/recipes-support/gmp/gmp-6.1.2/amd64.patch
@@ -0,0 +1,18 @@
1Upstream-Status: Pending
2
3Index: gmp-5.0.3/longlong.h
4===================================================================
5--- gmp-5.0.3.orig/longlong.h
6+++ gmp-5.0.3/longlong.h
7@@ -994,8 +994,10 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO (
8 count is only an int. */
9 #define count_trailing_zeros(count, x) \
10 do { \
11+ UDItype __cbtmp; \
12 ASSERT ((x) != 0); \
13- __asm__ ("bsfq %1,%q0" : "=r" (count) : "rm" ((UDItype)(x))); \
14+ __asm__ ("bsfq %1,%0" : "=r" (__cbtmp) : "rm" ((UDItype)(x))); \
15+ (count) = __cbtmp; \
16 } while (0)
17 #endif /* x86_64 */
18
diff --git a/meta/recipes-support/gmp/gmp-6.1.2/use-includedir.patch b/meta/recipes-support/gmp/gmp-6.1.2/use-includedir.patch
new file mode 100644
index 0000000000..74904a2530
--- /dev/null
+++ b/meta/recipes-support/gmp/gmp-6.1.2/use-includedir.patch
@@ -0,0 +1,15 @@
1Upstream-Status: Pending
2
3Index: gmp-4.2.4/Makefile.am
4===================================================================
5--- gmp-4.2.4.orig/Makefile.am 2008-09-10 19:31:27.000000000 +0000
6+++ gmp-4.2.4/Makefile.am 2009-07-06 20:19:19.000000000 +0000
7@@ -106,7 +106,7 @@
8 # but anyone knowledgable enough to be playing with exec_prefix will be able
9 # to address that.
10 #
11-includeexecdir = $(exec_prefix)/include
12+includeexecdir = $(includedir)
13 include_HEADERS = $(GMPXX_HEADERS_OPTION)
14 nodist_includeexec_HEADERS = gmp.h $(MPBSD_HEADERS_OPTION)
15 lib_LTLIBRARIES = libgmp.la $(GMPXX_LTLIBRARIES_OPTION) $(MPBSD_LTLIBRARIES_OPTION)