summaryrefslogtreecommitdiff
path: root/package/python2
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-11-30 18:42:39 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-11-30 18:42:39 +0100
commitf31d1245743f5c7616b2fafc119daaf83f0086b1 (patch)
treedd1e62968dcc6aabcbacc7f59787b2c4ba866da5 /package/python2
parent8e8512391c668fc7074f812f15eabe8f176fb01e (diff)
fix xbmc build, it uses distutils to find python include dir
Diffstat (limited to 'package/python2')
-rw-r--r--package/python2/Makefile3
-rw-r--r--package/python2/files/patch-Lib_distutils_sysconfig_py10
2 files changed, 1 insertions, 12 deletions
diff --git a/package/python2/Makefile b/package/python2/Makefile
index 1fa0cce94..36bcdf7fc 100644
--- a/package/python2/Makefile
+++ b/package/python2/Makefile
@@ -97,6 +97,7 @@ CONFIGURE_ARGS:= --with-threads \
HOST_STYLE:= auto
HOST_CONFIGURE_ARGS:= --with-threads \
+ --enable-shared \
--disable-toolbox-glue \
--without-cxx-main
@@ -106,8 +107,6 @@ hostpost-install:
pre-configure:
(cd $(WRKBUILD) && patch -p1 < \
- $(TOPDIR)/package/python2/files/patch-Lib_distutils_sysconfig_py )
- (cd $(WRKBUILD) && patch -p1 < \
$(TOPDIR)/package/python2/files/patch-Misc_python-config_in )
$(SED) "s#@EXENAME@#$(STAGING_HOST_DIR)/usr/bin/python#" \
$(WRKBUILD)/Misc/python-config.in
diff --git a/package/python2/files/patch-Lib_distutils_sysconfig_py b/package/python2/files/patch-Lib_distutils_sysconfig_py
deleted file mode 100644
index 30aae0816..000000000
--- a/package/python2/files/patch-Lib_distutils_sysconfig_py
+++ /dev/null
@@ -1,10 +0,0 @@
---- Python-2.7.5.orig/Lib/distutils/sysconfig.py 2013-05-12 05:32:42.000000000 +0200
-+++ Python-2.7.5/Lib/distutils/sysconfig.py 2013-11-03 18:03:53.000000000 +0100
-@@ -76,6 +76,7 @@ def get_python_inc(plat_specific=0, pref
- """
- if prefix is None:
- prefix = plat_specific and EXEC_PREFIX or PREFIX
-+ prefix = re.sub('host_', 'target_', prefix)
-
- if os.name == "posix":
- if python_build: