[oe-commits] Koen Kooi : python 2.6.1: add softft fix from libffi, this hopefully makes python-ctypes work on ARMs with fpu and softfp
GIT User account
git at amethyst.openembedded.net
Mon Feb 9 16:10:23 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: d768e61faa9f59ea5fdd9c51b8e23d8dd53c2263
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d768e61faa9f59ea5fdd9c51b8e23d8dd53c2263
Author: Koen Kooi <koen at openembedded.org>
Date: Mon Feb 9 17:07:59 2009 +0100
python 2.6.1: add softft fix from libffi, this hopefully makes python-ctypes work on ARMs with fpu and softfp
---
packages/python/python_2.6.1.bb | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/packages/python/python_2.6.1.bb b/packages/python/python_2.6.1.bb
index 8c3f354..ae9f8ee 100644
--- a/packages/python/python_2.6.1.bb
+++ b/packages/python/python_2.6.1.bb
@@ -1,7 +1,7 @@
require python.inc
DEPENDS = "python-native db gdbm openssl readline sqlite3 tcl tk zlib"
DEPENDS_sharprom = "python-native db readline zlib gdbm openssl"
-PR = "ml2"
+PR = "ml3"
SRC_URI = "\
http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \
@@ -27,6 +27,11 @@ S = "${WORKDIR}/Python-${PV}"
inherit autotools
+# The 3 lines below are copied from the libffi recipe, ctypes ships its own copy of the libffi sources
+#Somehow gcc doesn't set __SOFTFP__ when passing -mfloatabi=softp :(
+TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__"
+TARGET_CC_ARCH_append_armv7a = " -D__SOFTFP__"
+
#
# copy config.h and an appropriate Makefile for distutils.sysconfig
# which laters uses the information out of these to compile extensions
More information about the Openembedded-commits
mailing list