summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
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