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.

Author yunlian
Recipients dstufft, eric.araujo, yunlian
Date 2015-08-25.15:47:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440517644.33.0.785597906757.issue24935@psf.upfronthosting.co.za>
In-reply-to
Content
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):]
History
Date User Action Args
2015-08-25 15:47:24yunliansetrecipients: + yunlian, eric.araujo, dstufft
2015-08-25 15:47:24yunliansetmessageid: <1440517644.33.0.785597906757.issue24935@psf.upfronthosting.co.za>
2015-08-25 15:47:24yunlianlinkissue24935 messages
2015-08-25 15:47:24yunliancreate