From 093c01c8f3f2d87f6795473816378501c0501b38 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 17 Oct 2011 14:50:12 +0200 Subject: add symlink for hostpython --- package/python2/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'package/python2/Makefile') 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 -- cgit v1.2.3