[New-bugs-announce] [issue24935] LDSHARED is not set according when CC is set.

yunlian report at bugs.python.org
Tue Aug 25 17:47:24 CEST 2015


New submission from yunlian:

On linux, when CC is set, we expect that the LDSHARED is set accordingly.
Currently, only on OS X, the LDSHARED is set properly.

Below is the proposed patch

--- a/Lib/distutils/sysconfig.py        2015-08-24 11:58:37.265683872 -0700
+++ b/Lib/distutils/sysconfig.py        2015-08-24 11:57:29.673945173 -0700
@@ -180,9 +180,9 @@
             if _USE_CLANG:
                 newcc = 'clang'
         if newcc:
-            # On OS X and linux, if CC is overridden, use that as the default
+            # On OS X, if CC is overridden, use that as the default
             #       command for LDSHARED as well
-            if ((sys.platform == 'darwin' or sys.platform.startswith('linux'))
+            if (sys.platform == 'darwin'
                     and 'LDSHARED' not in os.environ
                     and ldshared.startswith(cc)):
                 ldshared = newcc + ldshared[len(cc):]

----------
components: Distutils
messages: 249129
nosy: dstufft, eric.araujo, yunlian
priority: normal
severity: normal
status: open
title: LDSHARED is not set according when CC is set.
type: behavior

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24935>
_______________________________________


More information about the New-bugs-announce mailing list