diff options
Diffstat (limited to 'meta/recipes-devtools/python')
| -rw-r--r-- | meta/recipes-devtools/python/python3_3.9.0.bb | 6 |
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 | ||
| 75 | EXTRANATIVEPATH += "python3-native" | 75 | EXTRANATIVEPATH += "python3-native" |
| 76 | 76 | ||
| 77 | # LTO will be enabled via packageconfig depending upong distro features | ||
| 78 | LTO_class-target = "" | ||
| 79 | |||
| 77 | CACHED_CONFIGUREVARS = " \ | 80 | CACHED_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 | ||
| 91 | PACKAGECONFIG_class-target ??= "readline ${@possibly_include_pgo(d)} gdbm" | 94 | PACKAGECONFIG_class-target ??= "readline ${@possibly_include_pgo(d)} gdbm ${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}" |
| 92 | PACKAGECONFIG_class-native ??= "readline gdbm" | 95 | PACKAGECONFIG_class-native ??= "readline gdbm" |
| 93 | PACKAGECONFIG_class-nativesdk ??= "readline gdbm" | 96 | PACKAGECONFIG_class-nativesdk ??= "readline gdbm" |
| 94 | PACKAGECONFIG[readline] = ",,readline" | 97 | PACKAGECONFIG[readline] = ",,readline" |
| @@ -96,6 +99,7 @@ PACKAGECONFIG[readline] = ",,readline" | |||
| 96 | PACKAGECONFIG[pgo] = "--enable-optimizations,,qemu-native" | 99 | PACKAGECONFIG[pgo] = "--enable-optimizations,,qemu-native" |
| 97 | PACKAGECONFIG[tk] = ",,tk" | 100 | PACKAGECONFIG[tk] = ",,tk" |
| 98 | PACKAGECONFIG[gdbm] = ",,gdbm" | 101 | PACKAGECONFIG[gdbm] = ",,gdbm" |
| 102 | PACKAGECONFIG[lto] = "--with-lto,," | ||
| 99 | 103 | ||
| 100 | do_configure_prepend () { | 104 | do_configure_prepend () { |
| 101 | mkdir -p ${B}/Modules | 105 | mkdir -p ${B}/Modules |
