diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-10-17 14:50:12 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-10-17 14:50:12 +0200 |
commit | 093c01c8f3f2d87f6795473816378501c0501b38 (patch) | |
tree | c1595a61cb94f571b7bf8ba3a57584c1b0c70953 /package/python2/Makefile | |
parent | f95254a21d2bffc3e3f0d9cbefe6b75a70b67922 (diff) |
add symlink for hostpython
Diffstat (limited to 'package/python2/Makefile')
-rw-r--r-- | package/python2/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/package/python2/Makefile b/package/python2/Makefile index 2aed3ed49..b28b5d49e 100644 --- a/package/python2/Makefile +++ b/package/python2/Makefile @@ -30,6 +30,7 @@ $(eval $(call PKG_template,PYTHON2,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${P $(eval $(call PKG_template,PYTHON2_BZIP2,${PKG_NAME}-bzip2,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_PYTHON2_BZIP2},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) $(eval $(call PKG_template,PYTHON2_READLINE,${PKG_NAME}-readline,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_PYTHON2_READLINE},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) +TARGET_CFLAGS+= -fPIC MAKE_ENV+= OPT="$(TARGET_CFLAGS)" \ RANLIB="${TARGET_CROSS}ranlib" \ HOSTPYTHON=./hostpython \ @@ -74,10 +75,11 @@ post-install: ${CP} ${WRKINST}/usr/lib/python2.7/* ${IDIR_PYTHON2}/usr/lib/python2.7 ${CP} ${WRKINST}/usr/include/python2.7/* ${IDIR_PYTHON2}/usr/include/python2.7 -find ${IDIR_PYTHON2} -name "\*.pyc" -o -name "*\.pyo" -exec rm {} \; - rm ${IDIR_PYTHON2}/usr/lib/python2.7/lib-dynload/readline.so - rm ${IDIR_PYTHON2}/usr/lib/python2.7/lib-dynload/bz2.so + -rm ${IDIR_PYTHON2}/usr/lib/python2.7/lib-dynload/readline.so + -rm ${IDIR_PYTHON2}/usr/lib/python2.7/lib-dynload/bz2.so # workaround, copy host python-config to target scripts directory ${CP} ${STAGING_HOST_DIR}/usr/bin/python*-config ${STAGING_DIR}/scripts + (cd ${STAGING_DIR}/usr/bin/ && ln -sf $(STAGING_HOST_DIR)/usr/bin/hostpython hostpython) python2-readline-install: ${INSTALL_DIR} ${IDIR_PYTHON2_READLINE}/usr/lib/python2.7/lib-dynload |