Created attachment 442592 [details, diff] Patch for determining the correct abiflags Note: This issue is fixed upstream for python 3.5, but it will not be fixed for 3.4.5 (see https://bugs.python.org/issue5404). Description: Cross compiling dev-lang/python-3.4.5 fails building the extensions, when running setup.py. In Lib/distutils/command/build_ext.py the variable "sys.abiflags" (the abiflags of the host system) is used to determine the abiflags for the target system. As a consequence, the linker is passed the wrong (non existent) library.
Thanks for the patch! (I've tested it for python-3.4.3-r1.) How about submitting a pull request?
(In reply to Felix Janda from comment #1) > Thanks for the patch! (I've tested it for python-3.4.3-r1.) > > How about submitting a pull request? Actually there is one: https://github.com/gentoo/gentoo/pull/2247
commit 115041505b9b6b2c5902e385bf0726e8e3d47575 Author: Gerhard Bräunlich <wippbox@gmx.net> Date: Mon Sep 5 15:23:33 2016 +0200 dev-lang/python: Fix cross-compilation support for 3.4.5 Gentoo-bug: https://bugs.gentoo.org/show_bug.cgi?id=590530 Package-Manager: portage-2.2.28 Closes: https://github.com/gentoo/gentoo/pull/2247 dev-lang/python/files/python-3.4.5-cross.patch | 11 +++++++++++ dev-lang/python/python-3.4.5.ebuild | 1 + 2 files changed, 12 insertions(+)