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.

Title: distutils/command/build_ext passes wrong linker flags
Type: compile error Stage:
Components: Cross-Build, Distutils, Extension Modules, Library (Lib) Versions: Python 3.4, Python 3.5, Python 2.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: Benedikt.Morbach, BreamoreBoy, eric.araujo, rpetrov, tarek
Priority: normal Keywords: patch

Created on 2013-09-08 16:20 by Benedikt.Morbach, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
0001-make-sure-to-pass-L.-when-building-standard-extensio.patch Benedikt.Morbach, 2013-09-08 16:20
Messages (4)
msg197277 - (view) Author: Benedikt Morbach (Benedikt.Morbach) * Date: 2013-09-08 16:20
At 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
msg225038 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-08-07 20:23
@Eric what do you make of the attached patch?
msg225042 - (view) Author: Roumen Petrov (rpetrov) * Date: 2014-08-07 21:55
more simple correction is attached to issue17219
msg229710 - (view) Author: Benedikt Morbach (Benedikt.Morbach) * Date: 2014-10-20 03:03
fixed with issue17219
Date User Action Args
2022-04-11 14:57:50adminsetgithub: 63176
2014-10-20 03:03:29Benedikt.Morbachsetstatus: open -> closed
resolution: fixed
messages: + msg229710
2014-08-07 21:55:36rpetrovsetnosy: + rpetrov
messages: + msg225042
2014-08-07 20:23:23BreamoreBoysetnosy: + BreamoreBoy

messages: + msg225038
versions: - Python 2.6, Python 3.1, Python 3.2, Python 3.3
2013-09-08 16:20:20Benedikt.Morbachcreate