python-2.7-030-fix-long-long-format.patch 775 B

12345678910111213141516171819
  1. Python's configure assume than when cross-compiling the target has no
  2. support for long long int. This assumption breaks compilation later in the
  3. process. Since gcc handles long long support, we can change the value to
  4. assume that there is such support.
  5. Patch by Maxime Ripard <ripard@archos.com>
  6. diff -rduNp Python-2.7.orig/configure Python-2.7/configure
  7. --- Python-2.7.orig/configure 2010-09-30 12:05:54.000000000 +0200
  8. +++ Python-2.7/configure 2010-09-30 12:12:30.000000000 +0200
  9. @@ -13517,7 +13517,7 @@ $as_echo_n "checking for %lld and %llu p
  10. $as_echo_n "(cached) " >&6
  11. else
  12. if test "$cross_compiling" = yes; then :
  13. - ac_cv_have_long_long_format=no
  14. + ac_cv_have_long_long_format=yes
  15. else
  16. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17. /* end confdefs.h. */