python, python3: build with tzset support
This patch adds support for time.tzset() in Python 2.7 and Python 3. The Python configure script sets ac_cv_working_tzset to 'no' when cross compiling, although it should be available and work with all toolchains supported by Buildroot (?). The patch below pre-sets the variable so that time.tzset() works. [Thomas: adjust commit log.] Signed-off-by: Henry Margies <henry.margies@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
9aaf13c91c
commit
a37b214c43
@ -121,7 +121,8 @@ endif
|
|||||||
PYTHON_CONF_ENV += \
|
PYTHON_CONF_ENV += \
|
||||||
ac_cv_have_long_long_format=yes \
|
ac_cv_have_long_long_format=yes \
|
||||||
ac_cv_file__dev_ptmx=yes \
|
ac_cv_file__dev_ptmx=yes \
|
||||||
ac_cv_file__dev_ptc=yes
|
ac_cv_file__dev_ptc=yes \
|
||||||
|
ac_cv_working_tzset=yes
|
||||||
|
|
||||||
PYTHON_CONF_OPT += \
|
PYTHON_CONF_OPT += \
|
||||||
--without-cxx-main \
|
--without-cxx-main \
|
||||||
|
@ -96,6 +96,7 @@ PYTHON3_CONF_ENV += \
|
|||||||
ac_cv_have_long_long_format=yes \
|
ac_cv_have_long_long_format=yes \
|
||||||
ac_cv_file__dev_ptmx=yes \
|
ac_cv_file__dev_ptmx=yes \
|
||||||
ac_cv_file__dev_ptc=yes \
|
ac_cv_file__dev_ptc=yes \
|
||||||
|
ac_cv_working_tzset=yes
|
||||||
|
|
||||||
PYTHON3_CONF_OPT += \
|
PYTHON3_CONF_OPT += \
|
||||||
--without-ensurepip \
|
--without-ensurepip \
|
||||||
|
Loading…
Reference in New Issue
Block a user