Title: setting CC no longer overrides default linker for extension module builds on OS X
Type: behavior Stage: resolved
Components: Distutils, macOS Versions: Python 3.3, Python 3.4, Python 2.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ned.deily Nosy List: ned.deily, python-dev, ronaldoussoren, tarek
Priority: normal Keywords: patch

Created on 2013-05-28 09:27 by ned.deily, last changed 2013-05-28 23:48 by ned.deily. This issue is now closed.

File name Uploaded Description Edit
issue18080_ldshared_2.7.patch ned.deily, 2013-05-28 09:30 patch and tests for 2.7
Messages (4)
msg190182 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013-05-28 09:27
As part of the initial changes for Issue13590 in 2.7.3, 3.2.3, and 3.3 (prior to release) to Distutils to support building extension modules on OS X with Xcode 4, code was added to substitute the clang compiler if the older gcc-4.2 supplied with Xcode 3 was not found.  In addition, the changes made it easier for the user to override the compiler for both the compile and linking stages: "Also as a convenience, if the user does explicitly set CC, substitute its value as the default compiler in the Distutils LDSHARED configuration variable for OS X."  This eliminated the need to construct a complete LDSHARED value.  For 2.7.4, 3.2.4, and 3.3.0, more extensive changes were made to fully support the latest releases of Xcode 4.  Unfortunately, the code to override LDSHARED if CC is set was inadvertently deleted for these later releases.  The attached patch restores the deleted override behavior and adds tests.
msg190197 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2013-05-28 11:45
msg190258 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-05-28 23:45
New changeset ca24bc6a5a4b by Ned Deily in branch '2.7':
Issue #18080: When building a C extension module on OS X, if the compiler

New changeset 75432fb6b9af by Ned Deily in branch '3.3':
Issue #18080: When building a C extension module on OS X, if the compiler

New changeset 0512bb1b5b8a by Ned Deily in branch 'default':
Issue #18080: merge from 3.3
msg190259 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013-05-28 23:48
Committed for release with 2.7.6 and 3.3.3.
Date User Action Args
2013-05-28 23:48:57ned.deilysetstatus: open -> closed
resolution: fixed
messages: + msg190259

stage: patch review -> resolved
2013-05-28 23:45:40python-devsetnosy: + python-dev
messages: + msg190258
2013-05-28 11:45:55ronaldoussorensetmessages: + msg190197
2013-05-28 09:30:45ned.deilysetfiles: + issue18080_ldshared_2.7.patch
nosy: + ronaldoussoren
keywords: + patch
2013-05-28 09:27:55ned.deilycreate