Issue 983206: Allow ldshared to be overridden by environment var (original) (raw)

Issue983206

Created on 2004-07-01 06:18 by liam_routt, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
sysconfig.patch liam_routt,2004-07-01 06:18 context diff for distutils/sysconfig.py
Messages (3)
msg46297 - (view) Author: Liam Routt (liam_routt) Date: 2004-07-01 06:18
At present the ldshared executible is set only by locating it in the python Makefile (there is a fallback if it is not found, as well). While that works in many cases, it may be that one needs to set the ldshared to agree with a compiler/linker other than the one python was compiled with. You can set CC, but when creating shared objects you are stuck with whatever python was compiled with. The patch simply checks for LDSHARED in the current environment, and if it is present, it uses it. This is the same behaviour (and method) as for CC and CXX. Note that I'm indicating this is for 2.3, but I've browsed CVS and found sysconfig.py to be identical in this area of the code.
msg46298 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2004-08-09 10:15
Logged In: YES user_id=29957 I'm inclined to accept this patch, if only because Python's own setup.py has a similar hack in it already!
msg46299 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2004-10-13 15:54
Logged In: YES user_id=29957 Applied, and modified setup.py to no longer do this itself. Thanks for the patch!
History
Date User Action Args
2022-04-11 14:56:05 admin set github: 40488
2004-07-01 06🔞29 liam_routt create