diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-11-08 16:02:08 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-11 10:08:11 +0000 |
commit | 3487d920f6edb320d67bca62c8495daad4498926 (patch) | |
tree | 5f80663fbdf3e82a7509eaf7f15e4fe04c158034 | |
parent | 9df7ab80895547a43857a299b58014dc359b6283 (diff) | |
download | poky-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>
-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 |