summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-11-13 22:23:23 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-11-13 23:40:50 +0100
commit5ad4ac083276b3504889c39351a56d947f172b5f (patch)
treea75a192fa19859749636094998e5574fd2b4e38e
parentffeaa18bdf1bf8f75c44a59ae13fc38cb5538a62 (diff)
downloadbuildroot-5ad4ac083276b3504889c39351a56d947f172b5f.tar.gz
buildroot-5ad4ac083276b3504889c39351a56d947f172b5f.zip
python3: don't use wcsftime() on uClibc
As investigated in bug #7646, wcsftime() doesn't work properly with uClibc. Until it gets fixed in uClibc, let's tell Python 3 to not use it. Python 3 will fall back to strftime(), which works properly. [Peter: fix typo in comment] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Beyonlo <beyonlo@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/python3/python3.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index 2c1ef2a568..5c72c6ebc9 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -107,6 +107,12 @@ PYTHON3_CONF_ENV += \
ac_cv_file__dev_ptc=yes \
ac_cv_working_tzset=yes
+# uClibc is known to have a broken wcsftime() implementation, so tell
+# Python 3 to fall back to strftime() instead.
+ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
+PYTHON3_CONF_ENV += ac_cv_func_wcsftime=no
+endif
+
PYTHON3_CONF_OPTS += \
--without-ensurepip \
--without-cxx-main \
OpenPOWER on IntegriCloud