From 1820537b047086ac5d5c042296372a9ce2c5c822 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 12 Dec 2013 11:53:47 +0100 Subject: another try to fix python problems --- package/python2/files/python-config.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 package/python2/files/python-config.patch (limited to 'package/python2/files/python-config.patch') diff --git a/package/python2/files/python-config.patch b/package/python2/files/python-config.patch new file mode 100644 index 000000000..9478835d5 --- /dev/null +++ b/package/python2/files/python-config.patch @@ -0,0 +1,21 @@ +--- python2.7-config.orig 2013-12-11 12:40:37.244519764 +0100 ++++ python2.7-config 2013-12-11 12:41:43.279093075 +0100 +@@ -3,6 +3,7 @@ + import sys + import os + import getopt ++import re + from distutils import sysconfig + + valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', +@@ -37,8 +38,8 @@ + print sysconfig.EXEC_PREFIX + + elif opt in ('--includes', '--cflags'): +- flags = ['-I' + sysconfig.get_python_inc(), +- '-I' + sysconfig.get_python_inc(plat_specific=True)] ++ flags = ['-I' + re.sub('target_', 'host_', sysconfig.get_python_inc()), ++ '-I' + re.sub('target_', 'host_', sysconfig.get_python_inc(plat_specific=True))] + if opt == '--cflags': + flags.extend(getvar('CFLAGS').split()) + print ' '.join(flags) -- cgit v1.2.3