summaryrefslogtreecommitdiff
path: root/package/python2/files/python-config.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-02 15:10:27 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-02 15:10:27 +0100
commitb8e1fbce6811e906e7c8bd21f4e7fe1aa4881585 (patch)
treee669bfee978a3538becbe7933c6c243590e13aad /package/python2/files/python-config.patch
parent9e32d91c27e484f868d263cb757c56df50ebdb66 (diff)
parentc40e92f7cfbf6095abcb97fdfd6e7ce33579022c (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.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/python2/files/python-config.patch b/package/python2/files/python-config.patch
index 9478835d5..0a6ff7145 100644
--- a/package/python2/files/python-config.patch
+++ b/package/python2/files/python-config.patch
@@ -14,8 +14,8 @@
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))]
++ flags = ['-I' + re.sub('@@STAGING_TARGET_DIR@@', '@@STAGING_HOST_DIR@@', sysconfig.get_python_inc()),
++ '-I' + re.sub('@@STAGING_TARGET_DIR@@', '@@STAGING_HOST_DIR@@', sysconfig.get_python_inc(plat_specific=True))]
if opt == '--cflags':
flags.extend(getvar('CFLAGS').split())
print ' '.join(flags)