diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3/0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/meta/recipes-devtools/python/python3/0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch b/meta/recipes-devtools/python/python3/0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch index ef8edca51f..d668858066 100644 --- a/meta/recipes-devtools/python/python3/0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch +++ b/meta/recipes-devtools/python/python3/0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 4ba40ee527f844a804be571e52d9dc5447ae4cdd Mon Sep 17 00:00:00 2001 | 1 | From 0558745601cc72c8d6d79cd691f4b82330b29d58 Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Mon, 22 Oct 2018 15:19:51 +0800 | 3 | Date: Mon, 22 Oct 2018 15:19:51 +0800 |
4 | Subject: [PATCH] python3: use cc_basename to replace CC for checking compiler | 4 | Subject: [PATCH] python3: use cc_basename to replace CC for checking compiler |
@@ -27,27 +27,27 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com> | |||
27 | 1 file changed, 10 insertions(+), 9 deletions(-) | 27 | 1 file changed, 10 insertions(+), 9 deletions(-) |
28 | 28 | ||
29 | diff --git a/configure.ac b/configure.ac | 29 | diff --git a/configure.ac b/configure.ac |
30 | index 90008bc..bf56195 100644 | 30 | index bd2be94..cb9e198 100644 |
31 | --- a/configure.ac | 31 | --- a/configure.ac |
32 | +++ b/configure.ac | 32 | +++ b/configure.ac |
33 | @@ -134,6 +134,7 @@ AC_CONFIG_HEADERS([pyconfig.h]) | 33 | @@ -137,6 +137,7 @@ AC_CONFIG_HEADERS([pyconfig.h]) |
34 | AC_CANONICAL_HOST | 34 | AC_CANONICAL_HOST |
35 | AC_SUBST(build) | 35 | AC_SUBST([build]) |
36 | AC_SUBST(host) | 36 | AC_SUBST([host]) |
37 | +LT_INIT | 37 | +LT_INIT |
38 | 38 | ||
39 | AS_VAR_IF([cross_compiling], [maybe], | 39 | AS_VAR_IF([cross_compiling], [maybe], |
40 | [AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and --build=ARCH])] | 40 | [AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and --build=ARCH])] |
41 | @@ -887,7 +888,7 @@ AC_MSG_RESULT($with_cxx_main) | 41 | @@ -896,7 +897,7 @@ AC_SUBST([CXX]) |
42 | preset_cxx="$CXX" | 42 | preset_cxx="$CXX" |
43 | if test -z "$CXX" | 43 | if test -z "$CXX" |
44 | then | 44 | then |
45 | - case "$CC" in | 45 | - case "$CC" in |
46 | + case "$cc_basename" in | 46 | + case "$cc_basename" in |
47 | gcc) AC_PATH_TOOL(CXX, [g++], [g++], [notfound]) ;; | 47 | gcc) AC_PATH_TOOL([CXX], [g++], [g++], [notfound]) ;; |
48 | cc) AC_PATH_TOOL(CXX, [c++], [c++], [notfound]) ;; | 48 | cc) AC_PATH_TOOL([CXX], [c++], [c++], [notfound]) ;; |
49 | clang|*/clang) AC_PATH_TOOL(CXX, [clang++], [clang++], [notfound]) ;; | 49 | clang|*/clang) AC_PATH_TOOL([CXX], [clang++], [clang++], [notfound]) ;; |
50 | @@ -1300,7 +1301,7 @@ rmdir CaseSensitiveTestDir | 50 | @@ -1328,7 +1329,7 @@ rmdir CaseSensitiveTestDir |
51 | 51 | ||
52 | case $ac_sys_system in | 52 | case $ac_sys_system in |
53 | hp*|HP*) | 53 | hp*|HP*) |
@@ -56,16 +56,16 @@ index 90008bc..bf56195 100644 | |||
56 | cc|*/cc) CC="$CC -Ae";; | 56 | cc|*/cc) CC="$CC -Ae";; |
57 | esac;; | 57 | esac;; |
58 | esac | 58 | esac |
59 | @@ -1834,7 +1835,7 @@ esac | 59 | @@ -1854,7 +1855,7 @@ esac |
60 | ], | 60 | ], |
61 | [AC_MSG_RESULT(no)]) | 61 | [AC_MSG_RESULT([no])]) |
62 | if test "$Py_LTO" = 'true' ; then | 62 | if test "$Py_LTO" = 'true' ; then |
63 | - case $CC in | 63 | - case $CC in |
64 | + case $cc_basename in | 64 | + case $cc_basename in |
65 | *clang*) | 65 | *clang*) |
66 | LDFLAGS_NOLTO="-fno-lto" | 66 | LDFLAGS_NOLTO="-fno-lto" |
67 | dnl Clang linker requires -flto in order to link objects with LTO information. | 67 | dnl Clang linker requires -flto in order to link objects with LTO information. |
68 | @@ -1955,7 +1956,7 @@ then | 68 | @@ -1983,7 +1984,7 @@ then |
69 | fi | 69 | fi |
70 | fi | 70 | fi |
71 | LLVM_PROF_ERR=no | 71 | LLVM_PROF_ERR=no |
@@ -74,7 +74,7 @@ index 90008bc..bf56195 100644 | |||
74 | *clang*) | 74 | *clang*) |
75 | # Any changes made here should be reflected in the GCC+Darwin case below | 75 | # Any changes made here should be reflected in the GCC+Darwin case below |
76 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" | 76 | PGO_PROF_GEN_FLAG="-fprofile-instr-generate" |
77 | @@ -2016,7 +2017,7 @@ esac | 77 | @@ -2147,7 +2148,7 @@ AC_MSG_RESULT([$BOLT_APPLY_FLAGS]) |
78 | # compiler and platform. BASECFLAGS tweaks need to be made even if the | 78 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
79 | # user set OPT. | 79 | # user set OPT. |
80 | 80 | ||
@@ -83,7 +83,7 @@ index 90008bc..bf56195 100644 | |||
83 | *clang*) | 83 | *clang*) |
84 | cc_is_clang=1 | 84 | cc_is_clang=1 |
85 | ;; | 85 | ;; |
86 | @@ -2235,7 +2236,7 @@ yes) | 86 | @@ -2419,7 +2420,7 @@ yes) |
87 | 87 | ||
88 | # ICC doesn't recognize the option, but only emits a warning | 88 | # ICC doesn't recognize the option, but only emits a warning |
89 | ## XXX does it emit an unused result warning and can it be disabled? | 89 | ## XXX does it emit an unused result warning and can it be disabled? |
@@ -92,16 +92,16 @@ index 90008bc..bf56195 100644 | |||
92 | [*icc*], [ac_cv_disable_unused_result_warning=no] | 92 | [*icc*], [ac_cv_disable_unused_result_warning=no] |
93 | [PY_CHECK_CC_WARNING([disable], [unused-result])]) | 93 | [PY_CHECK_CC_WARNING([disable], [unused-result])]) |
94 | AS_VAR_IF([ac_cv_disable_unused_result_warning], [yes], | 94 | AS_VAR_IF([ac_cv_disable_unused_result_warning], [yes], |
95 | @@ -2477,7 +2478,7 @@ yes) | 95 | @@ -2665,7 +2666,7 @@ yes) |
96 | ;; | 96 | ;; |
97 | esac | 97 | esac |
98 | 98 | ||
99 | -case "$CC" in | 99 | -case "$CC" in |
100 | +case "$cc_basename" in | 100 | +case "$cc_basename" in |
101 | *icc*) | 101 | *mpicc*) |
102 | # ICC needs -fp-model strict or floats behave badly | 102 | CFLAGS_NODIST="$CFLAGS_NODIST" |
103 | CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" | 103 | ;; |
104 | @@ -3319,7 +3320,7 @@ then | 104 | @@ -3482,7 +3483,7 @@ then |
105 | then | 105 | then |
106 | LINKFORSHARED="-Wl,--export-dynamic" | 106 | LINKFORSHARED="-Wl,--export-dynamic" |
107 | fi;; | 107 | fi;; |
@@ -110,12 +110,12 @@ index 90008bc..bf56195 100644 | |||
110 | *gcc*) | 110 | *gcc*) |
111 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null | 111 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
112 | then | 112 | then |
113 | @@ -6410,7 +6411,7 @@ if test "$ac_cv_gcc_asm_for_x87" = yes; then | 113 | @@ -6802,7 +6803,7 @@ if test "$ac_cv_gcc_asm_for_x87" = yes; then |
114 | # Some versions of gcc miscompile inline asm: | 114 | # Some versions of gcc miscompile inline asm: |
115 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 | 115 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 |
116 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html | 116 | # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html |
117 | - case $CC in | 117 | - case $CC in |
118 | + case $cc_basename in | 118 | + case $cc_basename in |
119 | *gcc*) | 119 | *gcc*) |
120 | AC_MSG_CHECKING(for gcc ipa-pure-const bug) | 120 | AC_MSG_CHECKING([for gcc ipa-pure-const bug]) |
121 | saved_cflags="$CFLAGS" | 121 | saved_cflags="$CFLAGS" |