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.

classification
Title: Allow ldshared to be overridden by environment var
Type: Stage:
Components: Distutils Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: anthonybaxter Nosy List: anthonybaxter, liam_routt
Priority: normal Keywords: patch

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:05adminsetgithub: 40488
2004-07-01 06:18:29liam_routtcreate