diff options
authorJoshua Watt <>2020-01-17 17:04:23 (GMT)
committerRichard Purdie <>2020-01-28 11:15:01 (GMT)
commit441f31d02f049d7519071f3e2175b91e4b59237d (patch)
parent37e53c426b5ec28056762b7937853049a21c1a60 (diff)
python3: RDEPEND on libgcc
Python uses features of glibc that require it to dynamically load (i.e. dlopen()) libgcc_s at runtime. However, since this isn't a link time dependency, it doesn't get picked up automatically by bitbake so manually add it to RDEPENDS. There is an outstanding bug in Python to make it explicitly link against libgcc at link time which would remove the need for this. See: (From OE-Core rev: 04297ee03f5f4e4edafaf332a6648465f52ba1eb) Signed-off-by: Joshua Watt <> Signed-off-by: Richard Purdie <> Signed-off-by: Armin Kuster <> [ merged the fix to make it glibc only ] Signed-off-by: Adrian Bunk <> Signed-off-by: Richard Purdie <>
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/ b/meta/recipes-devtools/python/
index 7a569f9..3efd3bc 100644
--- a/meta/recipes-devtools/python/
+++ b/meta/recipes-devtools/python/
@@ -308,6 +308,8 @@ FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} ${libdir}/python${PYTHON_MA
308PACKAGES += "${PN}-man" 308PACKAGES += "${PN}-man"
309FILES_${PN}-man = "${datadir}/man" 309FILES_${PN}-man = "${datadir}/man"
310 310
311# See and
312RDEPENDS_libpython3_append_libc-glibc = " libgcc"
311RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip bzip2 libgcc tzdata-europe coreutils sed" 313RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip bzip2 libgcc tzdata-europe coreutils sed"
312RDEPENDS_${PN}-ptest_append_libc-glibc = " locale-base-tr-tr.iso-8859-9" 314RDEPENDS_${PN}-ptest_append_libc-glibc = " locale-base-tr-tr.iso-8859-9"
313RDEPENDS_${PN}-tkinter += "${@bb.utils.contains('PACKAGECONFIG', 'tk', 'tk tk-lib', '', d)}" 315RDEPENDS_${PN}-tkinter += "${@bb.utils.contains('PACKAGECONFIG', 'tk', 'tk tk-lib', '', d)}"