summaryrefslogtreecommitdiff
path: root/dev-lang/python/python-3.5.0.ebuild
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2015-09-19 22:07:40 -0400
committerMike Gilbert <floppym@gentoo.org>2015-09-19 22:07:53 -0400
commitc0d97a27e1a8ab3e695624d222c46bc80a6de618 (patch)
treee28688ee4f1d1a08976f3d97e8cb09edf2e8cd87 /dev-lang/python/python-3.5.0.ebuild
parentc7f7df5434de4a699fd95a346651cfa3f4ce148c (diff)
downloadgentoo-c0d97a27e1a8ab3e695624d222c46bc80a6de618.tar.gz
gentoo-c0d97a27e1a8ab3e695624d222c46bc80a6de618.tar.bz2
gentoo-c0d97a27e1a8ab3e695624d222c46bc80a6de618.zip
dev-lang/python: Fix cross-compiling for 3.5
Package-Manager: portage-2.2.20_p169_p6532
Diffstat (limited to 'dev-lang/python/python-3.5.0.ebuild')
-rw-r--r--dev-lang/python/python-3.5.0.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/dev-lang/python/python-3.5.0.ebuild b/dev-lang/python/python-3.5.0.ebuild
index ca56f88c9fc7..1dcd76917504 100644
--- a/dev-lang/python/python-3.5.0.ebuild
+++ b/dev-lang/python/python-3.5.0.ebuild
@@ -66,6 +66,7 @@ src_prepare() {
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
epatch "${FILESDIR}/${PN}-3.4.3-ncurses-pkg-config.patch"
+ epatch "${FILESDIR}/3.5-secondary-targets.patch"
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
configure.ac \
@@ -171,6 +172,9 @@ src_configure() {
}
src_compile() {
+ # Avoid regenerating these for cross-compiles
+ touch Include/graminit.h Python/graminit.c Python/importlib.h Python/importlib_external.h || die
+
cd "${BUILD_DIR}" || die
emake CPPFLAGS= CFLAGS= LDFLAGS=