summaryrefslogtreecommitdiff
path: root/package/python2
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-12-02 18:45:07 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-12-02 18:45:07 +0100
commita4a0ac503bdaefff0199a08e3f07018490b285e9 (patch)
treebda7451df89bed680286f68da383c65ea6371315 /package/python2
parentfe964cb4f3fadde717c2b2bbf546135526a3742d (diff)
use -fPIC so that static hostbuild is possible
Diffstat (limited to 'package/python2')
-rw-r--r--package/python2/Makefile5
-rw-r--r--package/python2/files/patch-Lib_distutils_sysconfig_py (renamed from package/python2/patches/patch-Lib_distutils_sysconfig_py)0
2 files changed, 4 insertions, 1 deletions
diff --git a/package/python2/Makefile b/package/python2/Makefile
index 47033dc2a..a0fa499a8 100644
--- a/package/python2/Makefile
+++ b/package/python2/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= python2
PKG_VERSION:= 2.7.5
-PKG_RELEASE:= 7
+PKG_RELEASE:= 8
PKG_MD5SUM:= b4f01a1d0ba0b46b05c73b2ac909b1df
PKG_DESCR:= Python scripting language (Version 2)
PKG_SECTION:= lang
@@ -100,6 +100,7 @@ HOST_CONFIGURE_ARGS:= --with-threads \
--disable-shared \
--disable-toolbox-glue \
--without-cxx-main
+CFLAGS_FOR_BUILD+= -fPIC
hostpost-install:
$(INSTALL_BIN) ${WRKBUILD}/Parser/pgen \
@@ -108,6 +109,8 @@ hostpost-install:
pre-configure:
(cd $(WRKBUILD) && patch -p1 < \
$(TOPDIR)/package/python2/files/patch-Misc_python-config_in )
+ (cd $(WRKBUILD) && patch -p1 < \
+ $(TOPDIR)/package/python2/files/patch-Lib_distutils_sysconfig_py )
$(SED) "s#@EXENAME@#$(STAGING_HOST_DIR)/usr/bin/python#" \
$(WRKBUILD)/Misc/python-config.in
diff --git a/package/python2/patches/patch-Lib_distutils_sysconfig_py b/package/python2/files/patch-Lib_distutils_sysconfig_py
index 30aae0816..30aae0816 100644
--- a/package/python2/patches/patch-Lib_distutils_sysconfig_py
+++ b/package/python2/files/patch-Lib_distutils_sysconfig_py