diff options
author | Maxime Ripard <maxime.ripard@anandra.org> | 2010-12-10 23:13:36 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2011-01-25 08:56:20 +0100 |
commit | 10e1927e1a1bc21785b9482fc4ba70d3b4773854 (patch) | |
tree | ca7e9684cfcf2cad772f0cb1df49e9f9c01341be /package/python/python-2.7-030-fix-long-long-format.patch | |
parent | d82df10e90ee9457ea0baba2d6a766149d4b7c38 (diff) |
python: Add the needed patches to compile python2.7 in buildroot.
Signed-off-by: Maxime Ripard <ripard@archos.com>
Diffstat (limited to 'package/python/python-2.7-030-fix-long-long-format.patch')
-rw-r--r-- | package/python/python-2.7-030-fix-long-long-format.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/package/python/python-2.7-030-fix-long-long-format.patch b/package/python/python-2.7-030-fix-long-long-format.patch new file mode 100644 index 000000000..5b9ddddd8 --- /dev/null +++ b/package/python/python-2.7-030-fix-long-long-format.patch @@ -0,0 +1,19 @@ +Python's configure assume than when cross-compiling the target has no +support for long long int. This assumption breaks compilation later in the +process. Since gcc handles long long support, we can change the value to +assume that there is such support. + +Patch by Maxime Ripard <ripard@archos.com> + +diff -rduNp Python-2.7.orig/configure Python-2.7/configure +--- Python-2.7.orig/configure 2010-09-30 12:05:54.000000000 +0200 ++++ Python-2.7/configure 2010-09-30 12:12:30.000000000 +0200 +@@ -13517,7 +13517,7 @@ $as_echo_n "checking for %lld and %llu p + $as_echo_n "(cached) " >&6 + else + if test "$cross_compiling" = yes; then : +- ac_cv_have_long_long_format=no ++ ac_cv_have_long_long_format=yes + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ |