[Patches] [ python-Patches-983206 ] Allow ldshared to be overridden by environment var

SourceForge.net noreply at sourceforge.net
Thu Jul 1 02:18:29 EDT 2004


Patches item #983206, was opened at 2004-07-01 16:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=983206&group_id=5470

Category: Distutils and setup.py
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Liam Routt (liam_routt)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allow ldshared to be overridden by environment var

Initial Comment:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=983206&group_id=5470



More information about the Patches mailing list