summaryrefslogtreecommitdiffstats
path: root/package/python/python-2.7-030-fix-long-long-format.patch
blob: 5b9ddddd899fac5b5f678e32e5a1324ed11c5a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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.  */