summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gmp/gmp
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/gmp/gmp')
-rw-r--r--meta/recipes-support/gmp/gmp/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch61
-rw-r--r--meta/recipes-support/gmp/gmp/0001-confiure.ac-Believe-the-cflags-from-environment.patch49
-rw-r--r--meta/recipes-support/gmp/gmp/use-includedir.patch18
3 files changed, 128 insertions, 0 deletions
diff --git a/meta/recipes-support/gmp/gmp/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch b/meta/recipes-support/gmp/gmp/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/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/0001-confiure.ac-Believe-the-cflags-from-environment.patch b/meta/recipes-support/gmp/gmp/0001-confiure.ac-Believe-the-cflags-from-environment.patch
new file mode 100644
index 0000000000..56564db505
--- /dev/null
+++ b/meta/recipes-support/gmp/gmp/0001-confiure.ac-Believe-the-cflags-from-environment.patch
@@ -0,0 +1,49 @@
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
21--- a/configure.ac
22+++ b/configure.ac
23@@ -625,17 +625,6 @@ case $host in
24 any_32_testlist="sizeof-void*-4"
25 any_64_testlist="sizeof-void*-8"
26
27- # This is needed for clang, which is not content with flags like -mfpu=neon
28- # alone.
29- case $host in
30- *-*-*eabi)
31- gcc_cflags_fpmode="-mfloat-abi=softfp" ;;
32- *-*-*eabihf)
33- gcc_cflags_fpmode="-mfloat-abi=hard" ;;
34- *-*-mingw*)
35- limb_64=longlong ;;
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@@ -780,8 +769,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 ;;
diff --git a/meta/recipes-support/gmp/gmp/use-includedir.patch b/meta/recipes-support/gmp/gmp/use-includedir.patch
new file mode 100644
index 0000000000..d27317cdf6
--- /dev/null
+++ b/meta/recipes-support/gmp/gmp/use-includedir.patch
@@ -0,0 +1,18 @@
1exec includedir should be pointing to general yocto includdir
2
3Upstream-Status: Pending
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5
6Index: gmp-6.1.2/Makefile.am
7===================================================================
8--- gmp-6.1.2.orig/Makefile.am
9+++ gmp-6.1.2/Makefile.am
10@@ -130,7 +130,7 @@ EXTRA_DIST += gmpxx.h
11 # but anyone knowledgeable enough to be playing with exec_prefix will be able
12 # to address that.
13 #
14-includeexecdir = $(exec_prefix)/include
15+includeexecdir = $(includedir)
16 include_HEADERS = $(GMPXX_HEADERS_OPTION)
17 nodist_includeexec_HEADERS = gmp.h
18 lib_LTLIBRARIES = libgmp.la $(GMPXX_LTLIBRARIES_OPTION)