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 <rep...@bugs.python.org> <http://bugs.python.org/issue24935> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com