summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2004-10-13 15:54:17 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2004-10-13 15:54:17 (GMT)
commit22dcf66f849c50c8bcb08537c02e8242ae6a0f4a (patch)
tree9deca02f0530285ed09d01a7c87d6592770240cf /Lib
parent8a560dee7291f75968eea773c1258f2c25b5a81f (diff)
downloadcpython-22dcf66f849c50c8bcb08537c02e8242ae6a0f4a.zip
cpython-22dcf66f849c50c8bcb08537c02e8242ae6a0f4a.tar.gz
cpython-22dcf66f849c50c8bcb08537c02e8242ae6a0f4a.tar.bz2
Patch 983206: distutils obeys LDSHARED env var. Removed the code in
Python's own setup.py that did the same thing (and tested on Solaris, where LDSHARED is needed...)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/sysconfig.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index 0a4e14c..8986dc9 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -153,6 +153,8 @@ def customize_compiler(compiler):
cc = os.environ['CC']
if os.environ.has_key('CXX'):
cxx = os.environ['CXX']
+ if os.environ.has_key('LDSHARED'):
+ ldshared = os.environ['LDSHARED']
if os.environ.has_key('CPP'):
cpp = os.environ['CPP']
else: