This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Benedikt.Morbach
Recipients Benedikt.Morbach, eric.araujo, tarek
Date 2013-09-08.16:20:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378657220.2.0.111053625387.issue18976@psf.upfronthosting.co.za>
In-reply-to
Content
At http://hg.python.org/cpython/file/1043cc2cb0ff/Lib/distutils/command/build_ext.py#l247
build_ext.py compares sys.executable against sys.exec_prefix.

When cross compiling cpython, it notices that the interpreter running the build is located at exec_prefix and concludes that it is building a third-party module.
Thus, it passes '-L{HOST_LIBDIR}', instead of '-L.', which breaks the build.

The attached patch reverses the logic, checking if sys.executable resides in ${PWD} and assuming a third-party module otherwise.

This should also fix http://bugs.python.org/issue16326
History
Date User Action Args
2013-09-08 16:20:20Benedikt.Morbachsetrecipients: + Benedikt.Morbach, tarek, eric.araujo
2013-09-08 16:20:20Benedikt.Morbachsetmessageid: <1378657220.2.0.111053625387.issue18976@psf.upfronthosting.co.za>
2013-09-08 16:20:20Benedikt.Morbachlinkissue18976 messages
2013-09-08 16:20:19Benedikt.Morbachcreate