summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-11-08 16:02:08 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-11 10:08:11 +0000
commit3487d920f6edb320d67bca62c8495daad4498926 (patch)
tree5f80663fbdf3e82a7509eaf7f15e4fe04c158034 /meta/recipes-devtools/python
parent9df7ab80895547a43857a299b58014dc359b6283 (diff)
downloadpoky-3487d920f6edb320d67bca62c8495daad4498926.tar.gz
python3: Enable lto if its in DISTRO_FEATURES
python3 configure compiles on object file and then greps for strings in it for endianness for target ,when using LTO the .o files are not nomal ELF onjects so this test fails, since we are using --enable-lto to enable this here we dont need to inject extra paths via bitbake anyway therefore reset LTO variable for target (From OE-Core rev: 2ccaa99871af8cb5b41e12a619e1bfbea4ca6f33) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3_3.9.0.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3_3.9.0.bb b/meta/recipes-devtools/python/python3_3.9.0.bb
index 6402760a1b..8fe60ea016 100644
--- a/meta/recipes-devtools/python/python3_3.9.0.bb
+++ b/meta/recipes-devtools/python/python3_3.9.0.bb
@@ -74,6 +74,9 @@ export CROSSPYTHONPATH="${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynl
74 74
75EXTRANATIVEPATH += "python3-native" 75EXTRANATIVEPATH += "python3-native"
76 76
77# LTO will be enabled via packageconfig depending upong distro features
78LTO_class-target = ""
79
77CACHED_CONFIGUREVARS = " \ 80CACHED_CONFIGUREVARS = " \
78 ac_cv_file__dev_ptmx=yes \ 81 ac_cv_file__dev_ptmx=yes \
79 ac_cv_file__dev_ptc=no \ 82 ac_cv_file__dev_ptc=no \
@@ -88,7 +91,7 @@ def possibly_include_pgo(d):
88 91
89 return '' 92 return ''
90 93
91PACKAGECONFIG_class-target ??= "readline ${@possibly_include_pgo(d)} gdbm" 94PACKAGECONFIG_class-target ??= "readline ${@possibly_include_pgo(d)} gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}"
92PACKAGECONFIG_class-native ??= "readline gdbm" 95PACKAGECONFIG_class-native ??= "readline gdbm"
93PACKAGECONFIG_class-nativesdk ??= "readline gdbm" 96PACKAGECONFIG_class-nativesdk ??= "readline gdbm"
94PACKAGECONFIG[readline] = ",,readline" 97PACKAGECONFIG[readline] = ",,readline"
@@ -96,6 +99,7 @@ PACKAGECONFIG[readline] = ",,readline"
96PACKAGECONFIG[pgo] = "--enable-optimizations,,qemu-native" 99PACKAGECONFIG[pgo] = "--enable-optimizations,,qemu-native"
97PACKAGECONFIG[tk] = ",,tk" 100PACKAGECONFIG[tk] = ",,tk"
98PACKAGECONFIG[gdbm] = ",,gdbm" 101PACKAGECONFIG[gdbm] = ",,gdbm"
102PACKAGECONFIG[lto] = "--with-lto,,"
99 103
100do_configure_prepend () { 104do_configure_prepend () {
101 mkdir -p ${B}/Modules 105 mkdir -p ${B}/Modules