summaryrefslogtreecommitdiff
path: root/package/python2/files/python-config.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-12-20 18:41:11 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-12-20 18:41:11 +0100
commit272b9fb572a6b1f585cf6f4f4150b07f1c1537bf (patch)
tree5ede8c935478f6db39bf8efc7ea14919e58d6aa1 /package/python2/files/python-config.patch
parentbde68f551d953927d476dc4f5ccd1c89ca001539 (diff)
parented95e17c2e88caff425eca534a794ea0c489fc5c (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/python2/files/python-config.patch')
-rw-r--r--package/python2/files/python-config.patch21
1 files changed, 21 insertions, 0 deletions
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)