summaryrefslogtreecommitdiff
path: root/package/python2/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-07-11 16:15:40 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-07-11 16:15:40 +0200
commita132130166cac1c44f248f6934f014403335965a (patch)
tree985bb339472444c781b10bdbb51b15815518404a /package/python2/Makefile
parent0a7cdf013e1a9aaeef82eb4809a0674330960b8e (diff)
unbreak python2 compile on Cygwin
Diffstat (limited to 'package/python2/Makefile')
-rw-r--r--package/python2/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/python2/Makefile b/package/python2/Makefile
index 4c5b17c5e..075920912 100644
--- a/package/python2/Makefile
+++ b/package/python2/Makefile
@@ -15,7 +15,7 @@ PKG_URL:= http://www.python.org/
PKG_SITES:= http://www.python.org/ftp/python/${PKG_VERSION}/
PKG_OPTS:= noscripts
-PKG_HOST_DEPENDS:= !netbsd !openbsd !cygwin
+PKG_HOST_DEPENDS:= !netbsd !openbsd
DISTFILES= Python-${PKG_VERSION}.tgz
WRKDIST= ${WRKDIR}/Python-${PKG_VERSION}
@@ -30,6 +30,10 @@ $(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}))
+ifeq ($(ADK_HOST_CYGWIN),y)
+EXE:= .exe
+endif
+
TARGET_CFLAGS+= -fPIC
TARGET_LDFLAGS+= -L.
MAKE_ENV+= OPT="$(TARGET_CFLAGS)" \
@@ -55,7 +59,7 @@ post-extract:
./configure --without-cxx-main --with-threads \
--prefix=$(STAGING_HOST_DIR)/usr \
);
- $(MAKE) -C ${WRKBUILD} python Parser/pgen
+ $(MAKE) -C ${WRKBUILD} python$(EXE) Parser/pgen$(EXE)
$(MAKE) -C ${WRKBUILD} install
${CP} ${WRKBUILD}/Parser/pgen ${STAGING_HOST_DIR}/usr/bin/pgen
${CP} ${WRKBUILD}/python ${STAGING_HOST_DIR}/usr/bin/hostpython